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
#2

and more thomethink thaht i forgot is how i check if player shoot on object \
thanxs for hlepers
Reply
#3

And whats the problem? Simply don't have any effect?
Reply
#4

Код:
new RangeActions[][] = {"RangeAction1","RangeAction2","RangeAction3","RangeAction4","RangeAction5"};
Reply
#5

ok thanx and about my other question??
how i check if the player shooting on object?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)