SA-MP Forums Archive
Why not work PlayerInfo[playerid][pName] -= 2; - 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: Why not work PlayerInfo[playerid][pName] -= 2; (/showthread.php?tid=454066)



Why not work PlayerInfo[playerid][pName] -= 2; - Kapone21 - 27.07.2013

Why don't work for example:
PlayerInfo[playerid][pDrugs] -= 2;



On ACCOUNT.ini appear:
Drugs= - 98 why?


Re: Why not work PlayerInfo[playerid][pName] -= 2; - arakuta - 27.07.2013

-= means subtract.

If you wanna SET, just use =.

PlayerInfo[playerid][pDrugs] = -2;