SA-MP Forums Archive
Random function - 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 function (/showthread.php?tid=558625)



Random function - DavidLuango - 18.01.2015

https://sampwiki.blast.hk/wiki/Random

Is it server sided?


Re: Random function - Scottas - 18.01.2015

Do you know any client sided functions in sa-mp?


Re: Random function - DavidLuango - 18.01.2015

Quote:
Originally Posted by Scottas
Посмотреть сообщение
Do you know any client sided functions in sa-mp?
What I meant was can that function be server sided, I'm trying to make a dice value for a server is it possible to make it server sided.


Re: Random function - Schneider - 18.01.2015

Yes, everything that you script is server sided.

pawn Код:
new result = (random(6)+1);