Help with pawno crash(rep++) - 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: Help with pawno crash(rep++) (
/showthread.php?tid=334957)
Help with pawno crash(rep++) -
Join7 - 16.04.2012
I have GarHouse 2.0. When added #include <moneyhax_FS> obtained Pawno crash.
This is top of script (GarHouse.pwn):
Код:
#define FILTERSCRIPT
#include <a_samp>
#include <sscanf2>
#include <YSI\y_ini>
#include <ZCMD>
#include <streamer>
#include <foreach>
#include <moneyhax_FS>
moneyhax_FS.inc
Код:
#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
Re: Help with pawno crash(rep++) -
@Riichard - 16.04.2012
try putting
Finally!
and add its include.
Ex :
pawn Код:
#include <a_samp>
#include <sscanf2>
#include <YSI\y_ini>
#include <ZCMD>
#include <streamer>
#include <foreach>
#include <moneyhax_FS>
#define FILTERSCRIPT
Re: Help with pawno crash(rep++) -
Join7 - 16.04.2012
I put #define FILTERSCRIPT in my .inc and not work.
Re: Help with pawno crash(rep++) -
iggy1 - 16.04.2012
Quote:
Originally Posted by @Riichard
try putting
Finally!
and add its include.
Ex :
|
You should define filterscript before any including additional files so the includes know if its a FS or GM.
Also the #endinput line just stops the file from being included twice. (it's an include not FS)
Re: Help with pawno crash(rep++) -
Join7 - 16.04.2012
In other Filterscripts, Pawno working... with this INC