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

Por que estб dando este error?

Quote:

C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(38810) : warning 219: local variable "temp" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

pawn Код:
if (!strcmp(cmd, "/contagem", true))
    {
                new temp[256]; // erro estб aquiw
        new tempo;
        temp = strtok(cmdtext, idx);
        tempo = strval(temp);
        if (PlayerInfo[playerid][pAdmin] >= 4)
        {
            if (!strlen(temp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USE: /contagem [segundos(3-60)]");
            }
        }
        return true;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)