Adding to stats - 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)
+--- Thread: Adding to stats (
/showthread.php?tid=414915)
Adding to stats -
Noles2197 - 10.02.2013
I have
And I want to add +2500 when I do my command. How do I make it take the value and add 2500 to the player's cash?
Re: Adding to stats -
zDevon - 10.02.2013
pawn Код:
pInfo[playerid][pCash] += 2500
will add 2500 to whatever value pCash is currently set to. GivePlayerMoney somewhere along side that line for looks.