Money Problem
#1

Helo SA-MP.com , I have a small problem with my FilterScript.

So, i have in my Gamemode a Anti Money Hack , when a player try to get money with Hack, Automatic , the server reset money. To give player money , in my Gamemode i use this function

PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + 1500;
SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]);

Also, i put in my FilterScript function that are in my Gamemode , To ResetMoney etc. by Didn't Work, A Good Scripter said me to use CallRemoteFunction, and he mentioned : You can create a function type:

forward FSGivePlayerCash(playerid,cash);
public FSGivePlayerCash(playerid,cash) { SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]); }

And Call Function

I tried what he said, but didn't work,

I put what it said in Filterscript, and in my Gamemode i put at function OnPlayerConnect

CallRemoteFunction("FSGivePlayerCash", "d");

Here is my FS : http://pastebin.com/YghNwRbe

What cand i do in This Case, a solution Please?

PS: Sorry for my Language
Reply


Messages In This Thread
Money Problem - by WaZP - 04.02.2014, 06:47
Re: Money Problem - by ACI - 04.02.2014, 06:54
Re: Money Problem - by WaZP - 04.02.2014, 07:28
Re: Money Problem - by WaZP - 04.02.2014, 09:38
Re: Money Problem - by ACI - 04.02.2014, 10:09
Re: Money Problem - by WaZP - 04.02.2014, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)