error 033: array must be indexed + Rep
#4

Oh, misread your topic, sorry.

Instead of:
pawn Код:
VehiclePos[freeid] = Dealership1Pos[rand][0], Dealership1Pos[rand][1], Dealership1Pos[rand][2];
Do:
pawn Код:
new rand = random(sizeof(Dealership1Pos));
VehiclePos[freeid] = Dealership1Pos[rand][0], Dealership1Pos[rand][1], Dealership1Pos[rand][2];
This will give you a random number correctly.
Reply


Messages In This Thread
error 033: array must be indexed + Rep - by Blademaster680 - 09.03.2014, 08:47
Re: error 033: array must be indexed + Rep - by Aerotactics - 09.03.2014, 08:51
Re: error 033: array must be indexed + Rep - by Blademaster680 - 09.03.2014, 09:27
Re: error 033: array must be indexed + Rep - by Aerotactics - 09.03.2014, 09:39

Forum Jump:


Users browsing this thread: 2 Guest(s)