All pastes #1787920 Raw Edit

SCMF test script

public cpp v1 · immutable
#1787920 ·published 2010-02-06 10:08 UTC
rendered paste body
#include <a_samp>public OnFilterScriptInit(){    new str[128];    format(str, 128, "%d%f%s", 1, 2.3, "4");    return 1;}public OnPlayerCommandText(playerid, cmdtext[]){	if (!strcmp(cmdtext, "/hello", true, 5))	{		new name[MAX_PLAYER_NAME];		GetPlayerName(playerid, name, MAX_PLAYER_NAME);		SendClientMessageFormatted(playerid, 0x00FF00FF, "Hello, %s!", name);		return 1;	}	if (!strcmp(cmdtext, "/mypos", true, 5))	{		new Float:x;		new Float:y;		new Float:z;		GetPlayerPos(playerid, x, y, z);		SendClientMessageFormatted(playerid, 0x00FFFFFF, "Your position is: %0.3f, %0.3f, %0.3f", x, y, z);		return 1;	}	return 0;}