Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

¿Could someone help me?

$
0
0
¡Hi everybody! I have some error with this, i was trying to make a unban system then, i did this command

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;
}

It gives me this error:

Code:

Server.pwn(12075) : error 047: array sizes do not match, or destination array is too small
If you can help me, thanks :)

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>