Callback's Instruction block isn't executed
#1

Hello everyone,

I'm in trouble because i have a problem that i don't understand.


The instruction block of the callback OnPlayerDisconect() idn't executed.



Код:
public OnPlayerDisconnect(playerid, reason)
{
	print("Callback disconect CALLED so instructions block is executed");//Debug message
	gPlayerConnected--;//TY Moathib for the idea
	printf("Joueurs connectйs: %d", gPlayerConnected);//Debug message
	RefreshGangMembers();//We just call a function
	CheckGangClosed();//We just call a function
	return 1;
}
This "code" is a proff, because no message(s) appear in the server console a player left.

I set some "debug messages" in the functions called in this callback (RefresgGangMembers() and CheckGangClosed() )
and no messages appear to.


This "slice of script" is in a FilterScript and the callback is called in other FS and in the GM.

But that's not all!
When I set the callback to always return "0"... nobody can connect to the server: the Sa:Mp client loads (we can see a black screen) and quit.

WTF?!

A server script makes a client buging like this?! WTF?!


Seriously, i probably made an enourmous mistake and i hope someone(s) can help me.

I hope the mistake is completly my fault and not the Sa:Mp team fault!

Hopefully, Jujuv.


PS:Sorry about my English.I'm french
Reply


Messages In This Thread
Callback's Instruction block isn't executed - by jujuv - 27.02.2012, 15:50
AW: Callback's Instruction block isn't executed - by Tigerkiller - 27.02.2012, 15:59
Re : Callback's Instruction block isn't executed - by jujuv - 27.02.2012, 17:41
Re : Callback's Instruction block isn't executed - by jujuv - 27.02.2012, 18:09
Re : Callback's Instruction block isn't executed - by jujuv - 27.02.2012, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)