12.02.2011, 10:27
Use [ pawn ] instead of [ php ]
Anyways, here is the fix:
I just changed strtok, since you don't need it in here.
Anyways, here is the fix:
pawn Код:
if(strcmp(cmd, "/say", true) == 0)
{
if ( !strlen( cmdtext ) )
return SendClientMessage( playerid, COLOUR_ORANGE, "Usage: /say [text]" );
new playername[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, playername, sizeof playername );
new string[ 128 ];
format( string, sizeof string, "**Admin [%s](id:%d): %s", playername, playerid, cmdtext ); // I changed this also
return SendClientMessageToAll( COLOUR_RED, string );
}