25.04.2014, 18:48
Hello everyone,
Today I have written a ban command but it is giving me a strange error which I could not fix by myself, hopefully you could help me out:
Errors:
Exact line:
Today I have written a ban command but it is giving me a strange error which I could not fix by myself, hopefully you could help me out:
Код:
YCMD:ban(playerid, params[], help) { #pragma unused help if(P_Data[playerid][pAdmin] == 0) return SCM(playerid, COLOR_RED, "* You are not authorized to use this command!"); new string[128],pplayerid, reason[48]; if(sscanf(params, "us[48]", pplayerid, reason)) return SCM(playerid, COLOR_RED, "Usage: /ban [Player ID/Player Name] [Reason]"); if(pplayerid == IPI) return SCM(playerid, COLOR_RED, "Wrong playerid!"); if(P_Data[pplayerid][pAdmin] == 5) return SCM(playerid, COLOR_RED, "You cannot ban an admin level 5"); format(string,sizeof(string),""COL_RED"Admin "COL_WHITE"%s "COL_RED"is ban player "COL_WHITE"%s "COL_RED"Reason: %s",GetName(playerid),GetName(pplayerid),reason); SCMToAll(-1,string); Bans(playerid,pplayerid,reason); Ban(pplayerid); return 1; }
Quote:
undefined symbol "@yC_ban" undefined symbol "@yC_ban" error 017: undefined symbol "@_yCban" fatal error 107: too many error messages on one li |
Код:
YCMD:ban(playerid, params[], help)