09.11.2010, 01:02
Here is my OnPlayerCommandText
I get these errors:
Line 1762:
Line 1765:
Line 1770:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(unban, 5, cmdtext); if(AccInfo[playerid][Jailed] == 1 && AccInfo[playerid][Level] < 1) return SendClientMessage(playerid,red,"ERROR: You cannot use commands in Jail!"); new cmd[256]; new string[128]; new tmp[256]; new idx; cmd = strtok(cmdtext, idx);
Код:
C:\Users\Chris\Documents\Server\filterscripts\LuxAdmin.pwn(1762) : error 017: undefined symbol "CMDMessageToAdmins" C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1765) : error 017: undefined symbol "SaveToFile" C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : warning 225: unreachable code C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : warning 217: loose indentation C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : error 029: invalid expression, assumed zero C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : warning 215: expression has no effect C:\Users\Chris\Documents\Gserv\filterscripts\LuxAdmin.pwn(1770) : error 001: expected token: ";", but found "return" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
CMDMessageToAdmins(playerid,"UNBANNAME");
Код:
SaveToFile("UnBanNameLog",string);
Код:
} else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");