Problem | With Random
#1

hellow all.

i tried to do a random for a public
i means like when i want to call the public it will be choose in random

i hope you understand me becuase my english is bad..

now for the code:
Код:
 new rand = random(sizeof(RangeActions));
 SetTimer(RangeActions[rand],1,false);
 RA = rand;
Код:
new RangeActions[] = {"RangeAction1","RangeAction2","RangeAction3","RangeAction4","RangeAction5"};

forward RangeAction1();
forward RangeAction2();
forward RangeAction3();
forward RangeAction4();
forward RangeAction5();
forward RangeAction6();
hope you understand me...
and thanx for all helpers
Reply


Messages In This Thread
Problem | With Random - by avivelkayam - 17.02.2012, 17:20
Re: Problem | With Random - by avivelkayam - 17.02.2012, 17:35
Re: Problem | With Random - by TheGamer! - 17.02.2012, 21:26
Re: Problem | With Random - by dice7 - 17.02.2012, 22:30
Re: Problem | With Random - by avivelkayam - 18.02.2012, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)