Problem | With Random - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem | With Random (
/showthread.php?tid=319023)
Problem | With Random -
avivelkayam - 17.02.2012
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
Re: Problem | With Random -
avivelkayam - 17.02.2012
and more thomethink thaht i forgot is how i check if player shoot on object \
thanxs for hlepers
Re: Problem | With Random -
TheGamer! - 17.02.2012
And whats the problem? Simply don't have any effect?
Re: Problem | With Random -
dice7 - 17.02.2012
Код:
new RangeActions[][] = {"RangeAction1","RangeAction2","RangeAction3","RangeAction4","RangeAction5"};
Re: Problem | With Random -
avivelkayam - 18.02.2012
ok thanx and about my other question??
how i check if the player shooting on object?