Filterscript won't load objects
#1

As said in the title, i have a filterscript that doesn't load objects.

I am using the CreateDynamicObject, I have put the filterscript line in server.cfg, there are no compile errors/warnings.

The mappings are under OnFilterScriptInit()

Commands and other stuff work in the same filterscript, but it just won't load objects.
Reply
#2

Are you adding the mapping under

Код:
OnFilterscriptInit()
?
Reply
#3

maybe they dont get saved or dont get loaded onfilterscripinit..?
Reply
#4

Quote:
Originally Posted by DanRellex
Посмотреть сообщение
Are you adding the mapping under

Код:
OnFilterscriptInit()
?
Yep.
Reply
#5

Quote:
Originally Posted by Tagathron
Посмотреть сообщение
Yep.
Then I suggest just adding it into your game-mode, Should work.
Reply
#6

DanRellex, I know it will work in the gamemode, but I need it as a filterscript.That way i can add/change the mappings without having to GMX.
Reply
#7

Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
	CreateDynamicObject(1, 1, 1, 1, 1, 1, 1, 1);
	return 1;
}
Like that...?

Update streamer... Thats all I can think of.
Reply
#8

Quote:
Originally Posted by DanRellex
Посмотреть сообщение
Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
	CreateDynamicObject(1, 1, 1, 1, 1, 1, 1, 1);
	return 1;
}
Like that...?
Yes like that, except that my CreateDynamicObject(...) lines have proper coordinates and other arguments.
Reply
#9

Did you destroy all dynamic objects properly under OnFilterScriptExit()?

pawn Код:
public OnFilterScriptExit()
{
    // 0 indicates not serverwide, will only destroy objects within this script.
    Streamer_DestroyAllItems(STREAMER_TYPE_OBJECT, 0);
    return 1;
}
Reply
#10

Quote:
Originally Posted by Corekt
Посмотреть сообщение
Did you destroy all dynamic objects properly under OnFilterScriptExit()?

pawn Код:
public OnFilterScriptExit()
{
    // 0 indicates not serverwide, will only destroy objects within this script.
    Streamer_DestroyAllItems(STREAMER_TYPE_OBJECT, 0);
    return 1;
}
Now when you have mentioned it, I have done that too.
Still nothing.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)