Changing money with a FS using server sided money
#1

Hi.

I need help with a Filterscript called PPC Housing. My gamemode is running server sided money and so I need to make the Filterscript also use the server sided money. I need the FS to share data with the Gamemode.

I dont know how to get it to share data but I tried using PVars

In Filterscript
Код:
SetPVarInt(playerid, "HouseMoney", House_CalcSellPrice(HouseID));
In Gamemode:
Код:
PlayerInfo[playerid][pCash] = GetPVarInt(playerid, "HouseSell");
But my money still goes back to what it was before I sold the house.

Is there any other way I can make it set the server sided money?

Here is a example of me setting the cash when someone finishes a job:
Код:
new cash = random(5850) + 150;
	PlayerInfo[playerid][pCash] += cash;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)