17.04.2017, 19:42
Quote:
Eh I made a script that can clean pet me to do it turn out we erori here Eror D:\Old City\gamemodes\OldCity.pwn(123) : error 017: undefined symbol "PlayerInfo"
D:\Old City\gamemodes\OldCity.pwn(123) : warning 215: expression has no effect D:\Old City\gamemodes\OldCity.pwn(123) : error 001: expected token: ";", but found "]" D:\Old City\gamemodes\OldCity.pwn(123) : error 029: invalid expression, assumed zero D:\Old City\gamemodes\OldCity.pwn(123) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. If you can help here's a script //CMDDDDD COMMAND:clearedchat (playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, -1, "You are not authorized"); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); SCMA(-1," "); return 1; } #define SCMA SendClientMessageToAll |
PHP код:
COMMAND:clearedchat (playerid, params[])
{
if(pInfo[playerid][Admin] < 1) return SCM(playerid, -1, "You are not authorized");
{
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
SCMA(-1," ");
}
return 1;
}