04.09.2010, 17:29
(
Последний раз редактировалось park4bmx; 04.09.2010 в 17:44.
)
THANKS ALL FOR HELPING PROBLEM IS NOW SOLVED
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/test", true))
{
// Do something here
return true;
}
return SendClientMessage(playerid, 0xFFFFFF, "CUSTOM: Unknown COMMAND");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new
string[128];
if(!strcmp(cmdtext, "/test", true))
{
// Do something here
return true;
}
format(string, sizeof(string), "%s", cmdtext);
return GameTextForPlayer(playerid, string, xxx, x);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/test", true))
{
// Do something here
return true;
}
new str[ 128 ];
format( str, sizeof( str ), "~w~Unknown command: ~r~\"%s\"", cmdtext[ 0 ] );
return GameTextForPlayer( playerid, str, 5000, 6 );
}
new str[ 50 ];
format( str,sizeof( str ), "~w~ %s is an ~r~UNKNOWN COMMAND!",cmdtext );
GameTextForPlayer( playerid, str, 3000,3 );