25.12.2010, 18:16
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??
regards...
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]);