random selection
#3

pawn Код:
new luck = Random(1, 100);
if (luck <= 10)
{
    // 10% - spas
}
else if (luck <=30)
{
    // 30 % - pool cue
}
Just make sure the lowest percentage comes fist in the if-else statements.
Reply


Messages In This Thread
random selection - by MayaEU - 15.07.2016, 18:57
Re: random selection - by MayaEU - 15.07.2016, 20:09
Re: random selection - by Gammix - 15.07.2016, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)