random with precents?
#2

PHP код:
new PlayerLuck[playerid];  // <------- Variable that player's luck stored in.
new rand random(100);
if(
<= rand && rand <= PlayerLuck[playerid]) return ... //> Success
else if(rand PlayerLuck[playerid]) return ... //> Fail 
Reply


Messages In This Thread
random with precents? - by Lirbo - 19.01.2016, 08:26
Re: random with precents? - by M4D - 19.01.2016, 08:38
Re: random with precents? - by AmigaBlizzard - 19.01.2016, 12:56
Re: random with precents? - by AbyssMorgan - 19.01.2016, 13:06

Forum Jump:


Users browsing this thread: 2 Guest(s)