SA-MP Forums Archive
OnPlayerSpawn - 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)
+--- Thread: OnPlayerSpawn (/showthread.php?tid=354289)



OnPlayerSpawn - Pawwno - 26.06.2012

Hello. I don't know why, but the OnPlayerSpawn public don't execute functions. Nothing happens, why?

Код:
public OnPlayerSpawn (playerid)
{
	SetPlayerSkin (playerid, PlayerInfo [playerid] [pAspect]);

	TextDrawHideForPlayer (playerid, Textdraw_Conectare_3);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_4);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_5);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_6);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_7);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_8);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_9);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_10);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_11);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_12);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_13);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_14);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_15);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_16);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_17);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_18);
	TextDrawHideForPlayer (playerid, Textdraw_Conectare_19);

	return 1;
}



Re: OnPlayerSpawn - Face9000 - 26.06.2012

Have you defined Textdraw_Conectare_3,Textdraw_Conectare_4,Textdraw _Conectare_5 and so on?


Re: OnPlayerSpawn - Pawwno - 26.06.2012

That isn't the problem. This public don't execute functions, no just these, any functions, like SpawnPlayer for example.


Re: OnPlayerSpawn - Pawwno - 26.06.2012

Anybody?


Re: OnPlayerSpawn - Jonny5 - 26.06.2012

try adding


pawn Код:
print("onplayerspawn");
if that does not show in the console then
their could be a number of reasons as to why it dont work such as
bad hooking habits or another script returning 0


i call many functions from OnPlayerSpawn
including loading data/ setpos, ect...


Re: OnPlayerSpawn - Grand_Micha - 26.06.2012

Oh boy, this sure is an unnecessarily huge, steaming pile of...textdraws.

Also, do you want us to use our clairvoyance skills or what? Is this from your gm or fs? Etc.


Re: OnPlayerSpawn - Pawwno - 27.06.2012

This is from my GM. I enter a SendClientMessage, the bug was removed, but, after a restart, again the same problem.