SafeGivePlayerMoney - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SafeGivePlayerMoney (
/showthread.php?tid=193744)
SafeGivePlayerMoney -
Typhome - 27.11.2010
-----------
Re: SafeGivePlayerMoney -
FreshDoubleX - 27.11.2010
Код:
PlayerInfo[plyid][pCash] += amounttogive;
Re: SafeGivePlayerMoney -
Typhome - 27.11.2010
-----------
Re: SafeGivePlayerMoney -
FreshDoubleX - 27.11.2010
It works too ? Just player's money goes to negative.
Re: SafeGivePlayerMoney -
Typhome - 27.11.2010
-----------
Re: SafeGivePlayerMoney -
Mean - 27.11.2010
No, - ammounttogive
Re: SafeGivePlayerMoney -
FreshDoubleX - 27.11.2010
I just gave example for you.
Use
Код:
PlayerInfo[plyid][pCash] -= amounttogive;
Re: SafeGivePlayerMoney -
Cypog - 27.11.2010
Never been to school?
1 + 1 = 2
1 + -1 = 0
So use PlayerInfo[plyid][pCash] += amounttogive;