Random prize
#1

how to make random prize??
I wanna the define only:
pawn Код:
new //what's here?
Reply
#2

for example:
pawn Код:
GivePlayerMoney(playerid,5000);//rand1
GivePlayerMoney(playerid,7000);//rand2
GivePlayerMoney(playerid,10000);//rand3
GivePlayerMoney(playerid,20000);//rand4
Reply
#3

pawn Код:
new rand = random(5);
switch(rand)
{
     case 0: GivePlayerMoney(playerid, xxx);
     case 1: GivePlayerMoney(playerid, xxx);
     //and so on
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)