Objects in my filterscript doesn't load
#1

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

Is it a Filter Script?
Reply
#3

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?
Reply
#4

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

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

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

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

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)