OnPlayerSpawn
#1

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;
}
Reply
#2

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

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

Anybody?
Reply
#5

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)