Help with pawno crash(rep++)
#1

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
Reply
#2

try putting
pawn Код:
#define FILTERSCRIPT
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
Reply
#3

I put #define FILTERSCRIPT in my .inc and not work.
Reply
#4

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
try putting
pawn Код:
#define FILTERSCRIPT
Finally!
and add its include.
Ex :
pawn Код:
...
#define FILTERSCRIPT
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)
Reply
#5

In other Filterscripts, Pawno working... with this INC
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)