/rob command 1 problem 1 question
#2

pawn Код:
GivePlayerMoney(playerid,random(20000));
GivePlayerMoney(userid,random(0-20000));
is bad, since it gives random money to the playerid, and another random to the userid.
pawn Код:
new randval = random(GetPlayerMoney(userid));
GivePlayerMoney(playerid, randval);
GivePlayerMoney(userid, -randval);
Reply


Messages In This Thread
/rob command 1 problem 1 question - by Pawno_Master - 16.09.2009, 16:20
Re: /rob command 1 problem 1 question - by Clavius - 16.09.2009, 16:41
Re: /rob command 1 problem 1 question - by Pawno_Master - 16.09.2009, 16:55
Re: /rob command 1 problem 1 question - by Clavius - 16.09.2009, 17:02
Re: /rob command 1 problem 1 question - by eXchainZ-FoReVeR - 16.09.2009, 17:05
Re: /rob command 1 problem 1 question - by Pawno_Master - 16.09.2009, 17:19
Re: /rob command 1 problem 1 question - by Clavius - 16.09.2009, 17:21
Re: /rob command 1 problem 1 question - by Pawno_Master - 16.09.2009, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)