Filterscript objects doesnt load - 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: Filterscript objects doesnt load (
/showthread.php?tid=598102)
Filterscript objects doesnt load -
Aa12 - 08.01.2016
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
Re: Filterscript objects doesnt load -
Lucky13 - 08.01.2016
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
Re: Filterscript objects doesnt load -
RaajParker - 09.01.2016
Bro try it on both gamemodeInit and FSinit