Randoms
#1

I want the player to get money for example between 1K to 2K not more and not less
So..
Код:
new mrand =random(?);
GivePlayerMoney(playerid,mrand);
what shall i write there ?
Reply
#2

PHP код:
random(5);
0 1 ... 4


random
(1001)+1000;
0 + 1000, 1 + 1000 ... 1000+1000 = 2000 
Reply
#3

PHP код:
minrandom(min, max) 
    return 
random(max - min) + min; 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)