Would this work?
#1

I want to increase a variable value, I made the following code:

pawn Код:
public GivePlayerMoneyEx(playerid, money)
{
    GivePlayerMoney(playerid, money);
    pInfo[playerid][pMoney] += money;
    return 1;  
}
Will the pInfo[playerid][pMoney] variable be increased with the value of "money" ? Or do I have to use:

pawn Код:
public GivePlayerMoneyEx(playerid, money)
{
    GivePlayerMoney(playerid, money);
    pInfo[playerid][pMoney] = pInfo[playerid][pMoney] + money;
    return 1;  
}
Thanks for help.
Reply


Messages In This Thread
Would this work? - by Outcast - 08.07.2011, 23:52
Re: Would this work? - by [HiC]TheKiller - 08.07.2011, 23:55
Re: Would this work? - by Outcast - 08.07.2011, 23:59

Forum Jump:


Users browsing this thread: 1 Guest(s)