24.03.2013, 14:10
Oh, sorry. I'm retarded. You're running a loop from 0 - 5 (6 indexes), while your array is only 5 indexes. You're also using the values 0 - 6 instead of "gate1", "gate2" and so on, so you really don't need the enum.
Just declare it as a normal array ([6] instead of [pGates]) unless you're going to use "gate1" and such to choose index. If you still want to use the enum, you have to put "pGates:" infront of the value, like so:
Although I'm not entirely sure if that even works.
Ninja'd.
Just declare it as a normal array ([6] instead of [pGates]) unless you're going to use "gate1" and such to choose index. If you still want to use the enum, you have to put "pGates:" infront of the value, like so:
pawn Код:
PlayerGates[pGates:i]
Ninja'd.