Random Arrays
#5

Quote:
Originally Posted by Luis-
Посмотреть сообщение
What if i had multiple coords in one array though?
Can you make an Example, like this:

PHP код:
stock const Float:coords[][3] = {
    {
x,y,z},
    {
x1,y1,z1},
    {
x2,y2,z2}
};
new 
r = 1;
printf("X: %f | Y: %f | Z: %f",coords[r][0],coords[r][1],coords[r][2]);
//-> Would be: X: x1 | Y: y1 | Z: z1
new r = random(sizeof coords); //That would coose random coords 
Greekz
Reply


Messages In This Thread
Random Arrays - by Luis- - 06.03.2015, 14:05
AW: Random Arrays - by Kaliber - 06.03.2015, 14:08
Re: Random Arrays - by Luis- - 06.03.2015, 14:13
Re: Random Arrays - by RedFusion - 06.03.2015, 14:17
AW: Re: Random Arrays - by Kaliber - 06.03.2015, 14:18
Re: Random Arrays - by Luis- - 06.03.2015, 14:21
AW: Re: Random Arrays - by Kaliber - 06.03.2015, 14:25
Re: Random Arrays - by Luis- - 06.03.2015, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)