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: Random (
/showthread.php?tid=279331)
Random -
SpankMe2 - 26.08.2011
how would i make a script with random
and it has 18 variables and it places them in one of those 18 cars but if aa player is in that car it will rule that car out
and wont spawn a car for a player in the same place as another player
and wont spawn cars that arnt needed?
Please dont post full script just info that can help or a list of things i need the list will probs help more
Re: Random -
Kingunit - 26.08.2011
Random what? Sorry I don't understand this ..
Re: Random -
SpankMe2 - 26.08.2011
Basicly ive posted this because im making a mini game and i have to use random
I could probs do it by my self with out help and work it out if i keno what went under random do i put case:1 or somthing
Re: Random -
Lenny the Cup - 26.08.2011
random returns a number between 0 and the number you put inside the function. You can do a switch(random(1
) if you want.