Random Cash
#1

Hi there, have asked a few people for help on this but am still stuck.

Basically I want it so when you rob a player you rob a random amount of his cash, within the boundries of 1 - 100k.

Here is what I have tried:

pawn Код:
new pcash = GetPlayerMoney(forplayerid) + random(100000 - 1);
This just doesn't work, any help is appreciated as always.
Reply


Messages In This Thread
Random Cash - by Infamous - 22.12.2011, 23:23
Re: Random Cash - by Tigerkiller - 22.12.2011, 23:36
Re: Random Cash - by Infamous - 22.12.2011, 23:37
Re: Random Cash - by Tigerkiller - 22.12.2011, 23:44
Re: Random Cash - by Infamous - 22.12.2011, 23:51
Re: Random Cash - by [ABK]Antonio - 23.12.2011, 00:07
Re: Random Cash - by Infamous - 23.12.2011, 23:31
AW: Re: Random Cash - by Nero_3D - 23.12.2011, 23:48
Re: Random Cash - by Infamous - 24.12.2011, 01:15
Re: Random Cash - by Lorenc_ - 24.12.2011, 01:31

Forum Jump:


Users browsing this thread: 5 Guest(s)