SA-MP Forums Archive
Server Side Money Issue - 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: Server Side Money Issue (/showthread.php?tid=379780)



Server Side Money Issue - Gioslami - 23.09.2012

So i'm trying to use
SlashQ's Dynamic Dealership System!
http://pastebin.com/raw.php?i=nY9HU9LP

with the zGaming Roleplay game mode but whenever you buy a car it give you back the money i assume due to server side money but i dont know how to change the filter script to the same money,

Код:
    if(!strcmp(options, "money", true, 5))
    	{
            if(PlayerInfo[playerid][pMoney] < amount) return SendClientMessage(playerid, COLOR_GREY, "You don't have that much money on you.");
            FamInfo[idx][fMoney] += amount;
			GiveZaiatMoney(playerid, -amount);
            format(string, sizeof(string), "* %s has deposited $%d in their family safe.", RPN(playerid), amount);
			SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
        }
is see that around so i tried to switch GivePlayerMoney to Zaiat in the Filterscript but just comes up with error's saying that Zaitmoney is not defined, Could some one help me out with this.


More money related lines.

Код:
	

// User settings
enum pInfo
{
	// Temp Values
	pLoggedIn,
	pSpawn,
	// Permanent Values
	pIP[16],
	pOwner,
	pLevel,
	pMinutes,
	pHours,
	pGender,
	pAge,
	pMoney,