[Ajuda] shadows a variable at a preceding level "local variable"
#1

Alguйm me ajuda como esse comando? tipo, estou com medo de mexer e bugar, mexer nas cйlulas, o que faзo?

Код:
error1: local variable "tmp" shadows a variable at a preceding level
error2: local variable "Vstring" shadows a variable at a preceding level
comando:
pawn Код:
if (strcmp(cmd, "/baninfo", true) == 0)
    {
            if (PlayerInfo[playerid][pAdminStats] != 0)
            {
                SendClientMessage(playerid, COLOR_GRAD1,"ERRO: Vocк nгo estб no modo admin! (/trabalhar)");
                return true;
            }
        new tmp[24]; //error 1
        new Vstring[32]; //error 2
        tmp = strtok(cmdtext, idx);
        if (!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /baninfo [Nome/IP]");

        format(Vstring, 32, "/bans/%s.ini", tmp);
        VBanLoadInfo(playerid, Vstring);
        return true;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)