08.11.2010, 23:41
Hey so i have this for lvl 2+ admins
And it gives me this warning:
And, there is no line 11191 -_- only up to 11190.. will this command work? I know, it is just a warning, but i just want to get rid of it.
Thanks if you can help
Код:
dcmd_unban(playerid,params[]) { { if(AccInfo[playerid][Level] >= 2) { new tmp[256], Index; tmp = strtok(params,Index); if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /unban [name]"); new adminname[MAX_PLAYER_NAME], string[128], unbanname[256]; unbanname = tmp; if(udb_Exists(unbanname)) { dUserSetINT(unbanname).("banned", 0); GetPlayerName(playerid, adminname, sizeof(adminname)); CMDMessageToAdmins(playerid,"UNBANNAME"); format(string,sizeof(string),"Server: %s (ID: %d) has unbanned the name: \"%s\" .",adminname,playerid,unbanname); SendClientMessageToAll(green,string); SaveToFile("UnBanNameLog",string); print(string); return 1; } else return SendClientMessage(playerid, red, "ERROR: No player with this name."); } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command"); } else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands"); }
Код:
C:\Users\Chris\Documents\Server\filterscripts\LuxAdmin.pwn(11191) : warning 203: symbol is never used: "dcmd_unban" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Thanks if you can help