10.04.2010, 09:20
Arghh i got this warning and i forgot how to fix it?
This is the code where the warning shows.
Thanks in advanced Lorenc.
Код:
warning 219: local variable "cash" shadows a variable at a preceding level
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;
}