SA-MP Forums Archive
Filterscript - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Filterscript (/showthread.php?tid=244098)



Filterscript - iNeon - 26.03.2011

Hi,

I'm working with filterscripts but I have a problem.
I can call every callback, but OnPlayerConnect and OnPlayerDisconnect not.
How can I fix it?

Code:
Код:
#include <a_samp>
#include <a_mysql>

#include <gvar>
#include <SHA512>
#include <sscanf2>
#include <streamer>

#define DIALOG_ID_ACCOUNT 0

public OnFilterScriptInit()
{
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, 0xC0C0C0AA, "Hello");
	
    ShowPlayerDialog(playerid, DIALOG_ID_ACCOUNT, DIALOG_STYLE_INPUT, "Register you're account", "propagenda", "Register it", "");
    
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	/*if(GetPVarInt(playerid, "loggedin") == 0)
	    return 0;*/

	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	return 1;
}
Greetz,

iNeon.


Re: Filterscript - Medal Of Honor team - 26.03.2011

It's maybe causing for an include


Re: Filterscript - iNeon - 26.03.2011

That's an good idea! I'm going test it without the includes.

Edit: It hasn't effect.. Another one with a idea?


Re: Filterscript - AK47317 - 26.03.2011

maybe mysql include..


Re: Filterscript - iNeon - 26.03.2011

It hasn't effect without the includes.


Re: Filterscript - Hiddos - 26.03.2011

Check if any other scripts return 0 at OnPlayerConnect/OnPlayerDisconnect, then replace that to return 1. fsdebug is one of these filterscripts.


Re: Filterscript - iNeon - 26.03.2011

Thx!! Fsdebug was the problem, it's fixed now
But.. How can I fix fsdebug then?