random moneyrush amount
#1

hi

i want that it gives me a random (predefined) money amount as soon as i pickup the moneybag
but i dont get any money, why??

pawn Код:
new const RandomMoneyRushAmount[25][1] =
{
    {50000},{75000},{25000},{30000},{200000},{500000},{500},{1},{1000000},{10000},{150000},{350000},{10},{15000},{23512},{0},{16},{225000},{18},{95000},{80000},{31},{55000},{77500},{450000}

};

//OnPlayerPickUpPickUp
new rmra = random(sizeof RandomMoneyRushAmount);
if(pickupid == moneybag) GivePlayerMoney(playerid,RandomMoneyRushAmount[rmra][0]);
regards...
Reply


Messages In This Thread
random moneyrush amount - by BlackWolf120 - 25.12.2010, 18:16
Re: random moneyrush amount - by BlackWolf120 - 26.12.2010, 02:48
Re: random moneyrush amount - by Haydz - 26.12.2010, 03:48

Forum Jump:


Users browsing this thread: 1 Guest(s)