#2

Use [ pawn ] instead of [ php ]
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 );
}
I just changed strtok, since you don't need it in here.
Reply


Messages In This Thread
help - by omer5198 - 12.02.2011, 05:28
Re: help - by Mean - 12.02.2011, 10:27
Re: help - by omer5198 - 12.02.2011, 13:09
Re: help - by omer5198 - 12.02.2011, 13:49
Re: help - by HyperZ - 12.02.2011, 14:57
Re: help - by omer5198 - 12.02.2011, 18:02
Re: help - by Vince - 12.02.2011, 18:06
Re: help - by omer5198 - 12.02.2011, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)