04.07.2011, 00:35
Hi guys, I got a problem that when ever i add any car dealers and when i /buycar it gives my money back, And i've tried it on other GM it doesn't give the money Back Please help me!
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-carcost;
GivePlayerMoney(playerid, Money);
Hey can you please check this game mod and please say me where is it? Because i din't get you http://forum.sa-mp.com/showthread.ph...=South+african
Please.. Thanks in advance.. |
pMoney pCash PlayerInfo[playerid](Money/cash here)
stock GivePlayerCash(playerid, money) { PlayerInfo[playerid][pCash] -= money; ResetMoneyBar(playerid); UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]); return PlayerInfo[playerid][pCash]; } stock SetPlayerCash(playerid, money) { PlayerInfo[playerid][pCash] = money; ResetMoneyBar(playerid); UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]); return PlayerInfo[playerid][pCash]; } stock ResetPlayerCash(playerid) { PlayerInfo[playerid][pCash] = 0; ResetMoneyBar(playerid); UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]); return PlayerInfo[playerid][pCash]; } stock GetPlayerCash(playerid) { return PlayerInfo[playerid][pCash]; } |