17.08.2013, 20:58
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
In Gamemode:
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:
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));
Код:
PlayerInfo[playerid][pCash] = GetPVarInt(playerid, "HouseSell");
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;