08.07.2011, 23:52
I want to increase a variable value, I made the following code:
Will the pInfo[playerid][pMoney] variable be increased with the value of "money" ? Or do I have to use:
Thanks for help.
pawn Код:
public GivePlayerMoneyEx(playerid, money)
{
GivePlayerMoney(playerid, money);
pInfo[playerid][pMoney] += money;
return 1;
}
pawn Код:
public GivePlayerMoneyEx(playerid, money)
{
GivePlayerMoney(playerid, money);
pInfo[playerid][pMoney] = pInfo[playerid][pMoney] + money;
return 1;
}