SA-MP Forums Archive
i need a help to connect it - 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: i need a help to connect it (/showthread.php?tid=608815)



i need a help to connect it - XaibBaba - 05.06.2016

Код:
 if(GetPlayerCash(playerid) < LoInfo[ix][loPrice]) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to buy this house.");
					GivePlayerCash(playerid, -LoInfo[ix][loPrice]);
i have made this in fs how to connect the gamemode money with the fs money ?? please help me out here


Re: i need a help to connect it - Stinged - 05.06.2016

Код:
forward GetPlayerCash(playerid);
public GetPlayerCash(playerid)
{
    return Variable[playerid][Cash];
}
In your filterscript:
Код:
CallRemoteFunction("GetPlayerCash", "i", playerid);
Or make a function out of that (either a macro or an actual function)


Re: i need a help to connect it - Unte99 - 05.06.2016

https://sampforum.blast.hk/showthread.php?tid=151076


Re: i need a help to connect it - XaibBaba - 05.06.2016

its not working brother


Re: i need a help to connect it - XaibBaba - 05.06.2016

can any one give me those codes or function please?