05.01.2016, 22:02
Hi guys, I'm trying to add unban cmd to my Gamemode
Can you tell me how to fix it?
Код:
CMD:unban(playerid,params[]) { if(PlayerInfo[playerid][LoggedIn] == 1) { if(PlayerInfo[playerid][Level] >= 2) { new string[42],nickname[50]; if(sscanf(params, "s[50]s[48]", nickname)) return SendClientMessage(playerid, -1, "USAGE: /Unban (Nickname)"); CMDMessageToAdmins(playerid,"UNBAN"); SaveToFile("BanLog",string); return VUnBan(playerid,nickname); } 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"); }
Код:
\Desktop\COD WAW [LK]lewis\gamemodes\codwaw32.pwn(11076) : error 017: undefined symbol "VUnBan"