Question About enum, adding to the quantities. - 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: Question About enum, adding to the quantities. (
/showthread.php?tid=608362)
Question About enum, adding to the quantities. -
verlaj - 31.05.2016
For example i am using this code.
Код:
Group[playergroup][Credits] = GangZone[i][CreditsC];
But the problem with this is, it will rewrite the data instead of adding into Group Credits. I know we can use
Код:
Group[playergroup][Credits]++;
but that aint gonna help here.
Any suggestions ? Thanks.
Re: Question About enum, adding to the quantities. -
verlaj - 31.05.2016
nvm i've found the simple fix -_-
Код:
Group[p][Credits] = Group[p][Credits]+GangZone[i][CreditsC];
Re: Question About enum, adding to the quantities. -
SickAttack - 31.05.2016
pawn Код:
Group[p][Credits] += GangZone[i][CreditsC];
+=
Re: Question About enum, adding to the quantities. -
verlaj - 31.05.2016
ok thanks