enums, arrays halp.
#5

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:

pawn Код:
PlayerGates[pGates:i]
Although I'm not entirely sure if that even works.

Ninja'd.
Reply


Messages In This Thread
enums, arrays halp. - by BigGroter - 24.03.2013, 13:59
Re: enums, arrays halp. - by LarzI - 24.03.2013, 14:02
Re: enums, arrays halp. - by BigGroter - 24.03.2013, 14:05
Re: enums, arrays halp. - by Vince - 24.03.2013, 14:09
Re: enums, arrays halp. - by LarzI - 24.03.2013, 14:10
Re: enums, arrays halp. - by BigGroter - 24.03.2013, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)