SA-MP Forums Archive
Objects in my filterscript doesn't 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: Objects in my filterscript doesn't load (/showthread.php?tid=324728)



Objects in my filterscript doesn't load - reckst4r - 10.03.2012

Hello. I've mapped some objects and i'm trying to make them load. I've done as I did in 0.3c, but they just won't load. Compiling is fine, no errors or warnings.
My script:
PHP код:
/* Made by Thomas Reck
    For Infinity Role Play
     © Infinity Role Play 2012-2013 */
     
#include <a_samp>
#if defined FILTERSCRIPT
OnFilterScriptInit();
{
OBJECTS ARE CENSORED BECAUSE I DON'T WANT TO PUBLISH MY WORK
}
#endif 
All help is appreciated.


Re: Objects in my filterscript doesn't load - Faisal_khan - 10.03.2012

Is it a Filter Script?


Re: Objects in my filterscript doesn't load - thimo - 10.03.2012

How many objects they are? if it are more then 2000 then use this: https://sampforum.blast.hk/showthread.php?tid=102865 its the streamer plugin wich has no limit

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
Is it a Filter Script?
Well it says onfilterscriptinit so i think so huh?


Re: Objects in my filterscript doesn't load - reckst4r - 10.03.2012

Yes, it is a filterscript and it's under 2000 objects. Under 500


Re: Objects in my filterscript doesn't load - Faisal_khan - 10.03.2012

If its a gamemode, then remove this:
pawn Код:
#if defined FILTERSCRIPT

OnFilterScriptInit();
{
OBJECTS ARE CENSORED BECAUSE I DONT WANT TO PUBLISH MY WORK
}
#endif
and add the objects in this:
pawn Код:
public OnGameModeInit()
{
    return 1;
}
Dont forget to remove:
pawn Код:
#endif
,
pawn Код:
#else
and
pawn Код:
# if defined FILTERSCRIPT



Re: Objects in my filterscript doesn't load - reckst4r - 10.03.2012

Quote:
Originally Posted by reckst4r
Посмотреть сообщение
Yes, it is a filterscript and it's under 2000 objects. Under 500
I said that it IS a filterscript, and it's supposed to be.


Re: Objects in my filterscript doesn't load - Faisal_khan - 10.03.2012

Srry actually i was typing at the time u posted this so i failed to see this:
Quote:
Originally Posted by reckst4r
Посмотреть сообщение
Yes, it is a filterscript and it's under 2000 objects. Under 500



Re: Objects in my filterscript doesn't load - reckst4r - 10.03.2012

Oh. well, no problem. Any idea how to make it work?


Re: Objects in my filterscript doesn't load - Scrillex - 10.03.2012

Did you added filter script on server cfg? or you loaded it from OnFilterScriptInit(); ?


Re: Objects in my filterscript doesn't load - reckst4r - 10.03.2012

OnFilterScriptInit(); does require it to be added in server.cfg
And yes, I did add it in the server.cfg