Abit of help here.
#1

Arghh i got this warning and i forgot how to fix it?

Код:
warning 219: local variable "cash" shadows a variable at a preceding level
This is the code where the warning shows.

pawn Код:
public PayPlayerInArea(playerID, Float:x1, Float:y1, Float:x2, Float:y2, cash)
{
    if(IsPlayerConnected(playerID))
    {
        new Float:X, Float:Y, Float:Z;

        GetPlayerPos(playerID, X, Y, Z);
        if(X >= x1 && X <= x2 && Y >= y1 && Y <= y2)
        {
            GivePlayerMoney(playerID, cash);
            return 1;
        }
    }
    return 0;
}
Thanks in advanced Lorenc.
Reply


Messages In This Thread
Abit of help here. - by Lorenc_ - 10.04.2010, 09:20
Re: Abit of help here. - by [HiC]TheKiller - 10.04.2010, 09:22
Re: Abit of help here. - by Lorenc_ - 10.04.2010, 09:28
Re: Abit of help here. - by Lorenc_ - 10.04.2010, 09:32
Re: Abit of help here. - by Khelif - 10.04.2010, 09:40
Re: Abit of help here. - by Lorenc_ - 10.04.2010, 09:44

Forum Jump:


Users browsing this thread: 1 Guest(s)