Help Server Money
#10

Quote:
Originally Posted by Yuryfury
Посмотреть сообщение
Why would you separate SafeGiveMoney into the two if/else statements if they both do the same thing? Are these the only added Money related callbacks?
there are some stocks
Код:
stock GivePlayerCash(playerid, money)
{
    Cash[playerid] += money;
    ResetMoneyBar(playerid);//Resets money in the original bar
    UpdateMoneyBar(playerid,Cash[playerid]);//Puts money in the original bar
    return Cash[playerid];
}
stock SetPlayerCash(playerid, money)
{
    Cash[playerid] = money;
    ResetMoneyBar(playerid);//Resets money in the original bar    
    UpdateMoneyBar(playerid,Cash[playerid]);//Puts money in the original bar
    return Cash[playerid];
}
stock ResetPlayerCash(playerid)
{
    Cash[playerid] = 0;
    ResetMoneyBar(playerid);//Resets money in the original bar
    UpdateMoneyBar(playerid,Cash[playerid]);//Puts money in the original bar
    return Cash[playerid];
}
stock GetPlayerCash(playerid)
{
    return Cash[playerid];
}
Reply


Messages In This Thread
Help Server Money - by Dark Crow - 13.05.2012, 20:55
Re: Help Server Money - by ViniBorn - 13.05.2012, 20:58
Re: Help Server Money - by Yuryfury - 13.05.2012, 20:59
Re: Help Server Money - by Dark Crow - 13.05.2012, 21:06
Re: Help Server Money - by ViniBorn - 13.05.2012, 21:10
Re: Help Server Money - by Dark Crow - 13.05.2012, 21:15
Re: Help Server Money - by ViniBorn - 13.05.2012, 21:25
Re: Help Server Money - by Dark Crow - 13.05.2012, 21:28
Re: Help Server Money - by Yuryfury - 13.05.2012, 21:43
Re: Help Server Money - by Dark Crow - 13.05.2012, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)