SA-MP Forums Archive
[CODE] gamble - help please - 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: [CODE] gamble - help please (/showthread.php?tid=332808)



[CODE] gamble - help please - squomp - 09.04.2012

I dont fully understand the random function is there a way to make a random number between say 1 - 100?


Re: [CODE] gamble - help please - Shabi RoxX - 09.04.2012

You can't generate random numbers b/w two specific numbers . random() only generate number from 0 to give number like :

pawn Код:
new num = random(100);//so here number will be from 0 to 100 , any number

random(100000);//from 0 to 100000



Re: [CODE] gamble - help please - squomp - 09.04.2012

okay cool, I could still work with that, thanks mate