random
#4

If you're using a 'decimal system' (i.e. $14.00) then GetPlayerCash returns a float.

You'll have to use
pawn Код:
new rand=random(floatround(GetPlayerCash(playerid)));
Reply


Messages In This Thread
random - by armyoftwo - 31.12.2010, 17:48
Re: random - by Krx17 - 31.12.2010, 17:49
Re: random - by armyoftwo - 31.12.2010, 17:51
Re: random - by Joe Staff - 31.12.2010, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)