SA-MP Forums Archive
FS not working ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: FS not working ? (/showthread.php?tid=621072)



FS not working ? - StR_MaRy - 06.11.2016

hey guys i have a FS that wont give me the money and wont take them away from that player who give it to me.

FS: http://pastebin.com/Det6nSaq

the giveplayermoney is at the end of script line 254 and 255


Re: FS not working ? - Threshold - 06.11.2016

Well your first issue is not having a GivePlayerCash function... where is that? You also have 2 cash variables, 1 of which is unused.


Re: FS not working ? - StR_MaRy - 06.11.2016

i had this

Код HTML:
#define ResetMoneyBar ResetPlayerMoney
#define UpdateMoneyBar GivePlayerMoney
stock GivePlayerCash(playerid, money)
{
	    Cash[playerid] += money;
	    ResetMoneyBar(playerid);
	    UpdateMoneyBar(playerid, Cash[playerid]);
	    PlayerInfo[playerid][pCash] = Cash[playerid];
	    Update(playerid, pCashx);
        return Cash[playerid];
}
but still didn't worked