Money Bug
#1

I was editing my house system (fs) so it will be compatible with serverside money function in my GM. I use CallRemoteFunction to call the function of the serverside money in my GM to my house system filterscript, it seems to work but one problem is when I try to buy a house, it gave me unlimited money, not taken any money from me. The store cash / withdraw cash in my house system works with CallRemoteFunction ...

Serverside money function :
PHP код:
forward GivePlayerCash(playeridmoney);
public 
GivePlayerCash(playeridmoney)
{
    
Account[playerid][Money] += money;
    
ResetPlayerMoney(playerid);
    
GivePlayerMoney(playeridAccount[playerid][Money]);
    return 
Account[playerid][Money];

CallRemoteFunction under /buyhouse :
PHP код:
CallRemoteFunction("GivePlayerCash""dd"playerid, -hInfo[i][hPrice]);
format(string128"You have bought this house for $%d."hInfo[i][hPrice]);
SendClientMessage(playeridCOLOR_YELLOWstring); 
But it works when I use CallRemoteFunction("GivePlayerCash", "dd", playerid, blablabla) on another cmd like store cash or withdraw cash ..
Reply


Messages In This Thread
Money Bug - by AfiqIqbal - 07.12.2017, 09:12
Re: Money Bug - by Kyle - 07.12.2017, 09:47
Re: Money Bug - by AfiqIqbal - 07.12.2017, 18:37
Re: Money Bug - by AfiqIqbal - 08.12.2017, 06:14
Re: Money Bug - by jasperschellekens - 08.12.2017, 07:05
Re: Money Bug - by Sew_Sumi - 08.12.2017, 08:25
Re: Money Bug - by AfiqIqbal - 08.12.2017, 08:41
Re: Money Bug - by AfiqIqbal - 08.12.2017, 17:36
Re: Money Bug - by AfiqIqbal - 09.12.2017, 09:43
Re: Money Bug - by AfiqIqbal - 09.12.2017, 18:59

Forum Jump:


Users browsing this thread: 2 Guest(s)