20.01.2013, 16:40
Did you define PlayerInfo? Show me your defines
Also, here is one, in which I fixed the brackets.
Also, here is one, in which I fixed the brackets.
pawn Код:
COMMAND:clearchat(playerid,params[])
{
if( PlayerInfo[playerid][pAdmin] < 1 ) return SendClientMessage( playerid, COLOR_RED, "ERROR: You must be level 1 to use this command!" );
else
{
for( new i = 0; i <= 100; i ++ ) SendClientMessageToAll( -1, "" );
return 1;
}
}