30.05.2010, 15:31
Finally! Thanks man
I got one error next to optimiz my code qith the script. If you want explain me how to fix it:
ERROR: \filterscripts\Adminscript.pwn(1143) : error 001: expected token: ";", but found "-identifier-"
ERROR LINE:
GetPlayerName(playerid, pName, sizeof(pName));
.
I got one error next to optimiz my code qith the script. If you want explain me how to fix it:
Код:
dcmd_clear(playerid, params[]) { if(PlayerInfo[playerid][AdminLevel] < 2) return false; for(new i=0; i<30; i++) { SendClientMessageToAll(COLOR_BRIGHTRED, " "); new str[54], pName[24] GetPlayerName(playerid, pName, sizeof(pName)); format(str, sizeof(str), "Admin %s has cleared the chat.", pName); SendClientMessageToAll(COLOR_BRIGHTRED, str); } #pragma unused params return 1; }
ERROR LINE:
GetPlayerName(playerid, pName, sizeof(pName));
.