Filterscript objects doesnt load
#1

my filterscript "Maps" :

Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	// my objects
       print("fs loaded");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif
filterscripts anim_preloader Maps (ths is what i wrote in server.txt)

I also dont get message "fs loaded"
Filterscript amx is in filterscript folder
Reply
#2

You are missing the #define FILTERSCRIPT

It should be above #include <a_samp>

So your code should look like this:

Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	// my objects
       print("fs loaded");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif
Reply
#3

Bro try it on both gamemodeInit and FSinit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)