05.07.2017, 21:44
ЎHi everybody! I have some error with this, i was trying to make a unban system then, i did this command
It gives me this error:
If you can help me, thanks
Code:
CMD:unban(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2) { new tmp[128], Index; tmp = strtok(params,Index); //12075 Line, Error. if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Uso: /unban [Nombre]"); new unbanname[128], string2[128]; unbanname = tmp; if(udb_Exists(unbanname)) { dUserSetINT(unbanname).("banned", 0); CMDMessageToAdmins(playerid,"UNBAN"); format(string2,sizeof(string2),"Has desbaneado la cuenta de: %s",unbanname); SendClientMessage(playerid,yellow,string2); SaveToFile("DesbanNickLog",string2); ShowPlayerDialog(playerid,DESBAN01,DIALOG_STYLE_INPUT," ","{FFFFFF}Ingresa la IP a desbanear:\n","Desbanear","Cancelar"); } else return SendClientMessage(playerid, COLOR_RED, "No se consiguiу el baneo!."); } else return SendClientMessage(playerid,red,"[ERROR] No tienes autorizaciуn para el uso de este comando."); return 1; }
Code:
Server.pwn(12075) : error 047: array sizes do not match, or destination array is too small