20.01.2013, 15:37
It means that you don't have the variable "PlayerInfo" defined anywhere in your script, nor, it's defined in a local callback.
Also, you have another error that should be easily fixed by this:
Also, you have another error that should be easily fixed by this:
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;
}