Question About enum, adding to the quantities.
#1

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.
Reply
#2

nvm i've found the simple fix -_-

Код:
Group[p][Credits] = Group[p][Credits]+GangZone[i][CreditsC];
Reply
#3

pawn Код:
Group[p][Credits] += GangZone[i][CreditsC];
+=
Reply
#4

ok thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)