Help with bus job
#4

You can create the array using [], pawn will automatically count the amount of indices upon compiling.
But accessing the values afterwards, you always need to supply it with both indices:
BusCP[7][0] for example.

Or for a random coordinate:
pawn Код:
new RandCoord = random(sizeof(BusCP));
new Float:x = BusCP[RandCoord][0];
new Float:y = BusCP[RandCoord][1];
new Float:z = BusCP[RandCoord][2];
Reply


Messages In This Thread
Help with bus job - by LeXuZ - 27.11.2014, 18:12
Re: Help with bus job - by PowerPC603 - 27.11.2014, 19:20
Re: Help with bus job - by LeXuZ - 27.11.2014, 19:23
Re: Help with bus job - by PowerPC603 - 27.11.2014, 19:34
Re: Help with bus job - by LeXuZ - 27.11.2014, 19:35
Re: Help with bus job - by PowerPC603 - 27.11.2014, 19:38
Re: Help with bus job - by LeXuZ - 27.11.2014, 19:41
Re: Help with bus job - by LeXuZ - 27.11.2014, 19:45
Re: Help with bus job - by PowerPC603 - 27.11.2014, 20:27

Forum Jump:


Users browsing this thread: 6 Guest(s)