Problem with moneyhax in GarHouse (REP +1) - 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: Problem with moneyhax in GarHouse (REP +1) (
/showthread.php?tid=367418)
Problem with moneyhax in GarHouse (REP +1) -
Join7 - 09.08.2012
The problem is: When someone sell his house (/sellhouse) and other player buy his house, seller does not receive money.
I added "#include <moneyhax_FS>" in GarHouse.pwn
in other filterscripts (Drift Points), it works and drifter received his money
GarHouse includes:
PHP код:
#define FILTERSCRIPT // < is this problem? because when I remove this line GarHouse script found pawno crash.
#include <a_samp>
#include <sscanf2>
#include <YSI\y_ini>
#include <ZCMD>
#include <streamer>
#include <foreach>
#include <moneyhax_FS>
moneyhax_FS.inc (moneyhax_FS.inc is when i can to use money)
PHP код:
#if defined FILTERSCRIPT
#endinput
#endif
#if defined _moneyhax_included
#endinput
#endif
#define _moneyhax_included
stock moneyhax_GivePlayerMoney(playerid, amount)
return CallRemoteFunction("GivePlayerMonez", "ii", playerid, amount);
stock moneyhax_ResetPlayerMoney(playerid)
return CallRemoteFunction("ResetPlayerMonez", "i", playerid);
stock moneyhax_GetPlayerMoney(playerid)
return CallRemoteFunction("GetPlayerMonez", "i", playerid);
#define GivePlayerMoney moneyhax_GivePlayerMoney
#define ResetPlayerMoney moneyhax_ResetPlayerMoney
#define GetPlayerMoney moneyhax_GetPlayerMoney
Thanks in advance!
Re: Problem with moneyhax in GarHouse (REP +1) -
Join7 - 10.08.2012
up...
Re: Problem with moneyhax in GarHouse (REP +1) -
Join7 - 11.08.2012
bump
Re: Problem with moneyhax in GarHouse (REP +1) -
Join7 - 12.08.2012
someone?
Re: Problem with moneyhax in GarHouse (REP +1) -
Sig Hansen - 12.08.2012
Okey maybe i am really new to pawn but you have; GetPlayerMonez
Shouldnt be GetPlayerMoney
Try that :P
Код:
stock moneyhax_GivePlayerMoney(playerid, amount)
return CallRemoteFunction("GivePlayerMoney", "ii", playerid, amount);
stock moneyhax_ResetPlayerMoney(playerid)
return CallRemoteFunction("ResetPlayerMoney", "i", playerid);
stock moneyhax_GetPlayerMoney(playerid)
return CallRemoteFunction("GetPlayerMoney", "i", playerid);
Just change Monez to Money and then try xD
Re: Problem with moneyhax in GarHouse (REP +1) -
Join7 - 12.08.2012
no dude, this is original moneyhax_FS.inc and he work in other filterscripts.