[AJUDA]erro no /daradmin u.u'
#1

pawn Код:
if (strcmp(cmd, "/daradmin", true, 10) == 0)
    {
        if(PlayerInfo[playerid][Admin] > 4)
        {
        new plid;
        new niveladmin[20];
        tmp = strtok(cmdtext, idx);
        plid = strval(tmp);
        niveladmin = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
        SendClientMessage(playerid, AVISOADM, "[ERRO] Use: /daradmin [id] [nivel]");
        return 1;
        }
        if(IsPlayerConnected(plid) == 0)
        {
        SendClientMessage(playerid, AVISOADM, "[ERRO] Player OFF-LINE");
        return 1;
        }
        GetPlayerName(strval(tmp), pName, sizeof(pName));
        GetPlayerName(playerid, adm, sizeof(adm));
        format(stringa, sizeof(stringa), "[ADMCMD]:O admin %s lhe deu adm nivel:%s", adm,niveladmin);
        SendClientMessage(plid, COLOR_DBLUE, stringa);
        format(stringa, sizeof(stringa), "[ADMCMD]:Vocк deu admin para %s nivel:%s", adm,niveladmin);
        SendClientMessage(playerid, COLOR_DBLUE, stringa);
        PlayerInfo[plid][Admin] = niveladmin; //linha do erro u.u' 909
        }
        return 1;
    }
ERRO:
Код:
C:\Users\a\Desktop\Drift BSC\gamemodes\BSCdrift.pwn(909) : error 006: must be assigned to an array
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Alguem pode dar uma ajudinha ? hihi'
REP+ pra quem ajudar
Reply


Messages In This Thread
[AJUDA]erro no /daradmin u.u' - by Y_Baby - 07.01.2012, 17:21
Re: [AJUDA]erro no /daradmin u.u' - by Adrian Fahrenheit Tepes - 07.01.2012, 17:23
Re: [AJUDA]erro no /daradmin u.u' - by Hardware - 07.01.2012, 17:23
Re: [AJUDA]erro no /daradmin u.u' - by Y_Baby - 07.01.2012, 17:26
Re: [AJUDA]erro no /daradmin u.u' - by Adrian Fahrenheit Tepes - 07.01.2012, 17:34
Re: [AJUDA]erro no /daradmin u.u' - by Y_Baby - 07.01.2012, 18:29

Forum Jump:


Users browsing this thread: 3 Guest(s)