variable help ?
#1

Код:
C:\Users\Hellman.Hellmans-PC\Desktop\snusk\gamemodes\P-RP.pwn(38367) : warning 219: local variable "h" shadows a variable at a preceding level
pawn Код:
line 38367      for(new h = 0; h < sizeof(Ammunation); h++)
                {
                    if(PlayerToPoint(2.0, i, Ammunation[h][0], Ammunation[h][1], Ammunation[h][2]))
                    {
                        GameTextForPlayer(i, "~w~Ammunation~n~~r~/buygun", 5000, 3);
                    }
                }
            }
Reply
#2

Check if you've defined h already somewhere.
If not, then check your includes, perhaps they have it.
Reply
#3

Change "h" to something else. There is something above that line of code that already defines "h"
Reply
#4

pawn Код:
for(new j = 0; j < sizeof(Ammunation); j++)
                {
                    if(PlayerToPoint(2.0, j, Ammunation[j][0], Ammunation[j][1], Ammunation[j][2]))
                    {
                        GameTextForPlayer(j, "~w~Ammunation~n~~r~/buygun", 5000, 3);
                    }
                }
            }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)