#3

Quote:
Originally Posted by Mean
Посмотреть сообщение
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.
thx but i still got a problem... when i write /say or /ann it says the command too... like if i will write /say hi
it will write **Admin[omer5198](id:0)/say hi... see the problem? i want it to say only the hi not the /say... same with /ann
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: 3 Guest(s)