SA-MP Forums Archive
PlayerTextDraws not loading. - 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: PlayerTextDraws not loading. (/showthread.php?tid=566984)



PlayerTextDraws not loading. - Golimad - 09.03.2015

Hello, I have been try to fix this by my own for a little while but I couldn't solve it.
the filterscript compiles with no errors, but ingame the textdraws don't load.

Код:
here is on player connect code : 
public OnPlayerConnect(playerid)
{
	textdrawexemple					=CreatePlayerTextDraw(playerid, 320.000000, 204.000000, "_");
	PlayerTextDrawAlignment			(playerid, textdrawexemple, 2);
	PlayerTextDrawBackgroundColor	(playerid, textdrawexemple, -1);
	PlayerTextDrawFont				(playerid, textdrawexemple, 1);
	PlayerTextDrawLetterSize		(playerid, textdrawexemple, 0.500000, 16.199998);
	PlayerTextDrawColor				(playerid, textdrawexemple, 255);
	PlayerTextDrawSetOutline		(playerid, textdrawexemple, 1);
	PlayerTextDrawSetProportional	(playerid, textdrawexemple, 1);
	PlayerTextDrawUseBox			(playerid, textdrawexemple, 1);
	PlayerTextDrawBoxColor			(playerid, textdrawexemple, 80);
	PlayerTextDrawTextSize			(playerid, textdrawexemple, 20.000000, 82.000000);
 All the code I put below don't load either : prints , vars .. nothing
        return 1;
}



Re: PlayerTextDraws not loading. - Misiur - 09.03.2015

Does stuff before that prints? Also, get yourself crashdetect plugin - if something happens it should tell you what.


Re : PlayerTextDraws not loading. - Golimad - 10.03.2015

Bump, still looking forward solving this.


AW: Re : PlayerTextDraws not loading. - Kaliber - 11.03.2015

Quote:
Originally Posted by Golimad
Посмотреть сообщение
Bump, still looking forward solving this.
The show function is missing, write at least:

Код:
PlayerTextDrawShow(playerid, textdrawexemple);
//Edit: and as text use instead of an underscore space

Greekz


Re : PlayerTextDraws not loading. - Golimad - 11.03.2015

the issue is "PlayerTextDraws not loading." not "PlayerTextDraws not showing."
The show function is called in another point of code and its working fine. The thing that's not working is the creation and load of the text draws :
All code between OnPlayerConnect doesn't load.

- After some attempts, I have removed all code added between OnPlayerConnect :
Код:
public OnPlayerConnect(playerid)
{
	print("connect");
	return 1;
}
But when I connect it doesn't print anything.