Filterscript
#1

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

It's maybe causing for an include
Reply
#3

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

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

maybe mysql include..
Reply
#5

It hasn't effect without the includes.
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)