SA-MP Forums Archive
Problem with textdraws not showing after a_samp.inc update - 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: Problem with textdraws not showing after a_samp.inc update (/showthread.php?tid=596177)



Problem with textdraws not showing after a_samp.inc update - FunnyBear - 13.12.2015

Hello,

I have been recently working on my server and I came across a new dialog style and when I added it into a dialog, it said it was not defined. So I updated the a_samp.inc as I was still working with the old version of a_samp.inc (0.3z).

After updating, it compiled fine but when I went in game I noticed that most of my textdraws weren't working. I debugged the problem by going back to a previous backup and testing it.

Here is the textdraw codes:

Код:
Logo[0] = TextDrawCreate(498.975494, 401.916748, "Los Santos Life");
	TextDrawLetterSize(Logo[0], 0.482327, 1.605833);
	TextDrawAlignment(Logo[0], 1);
	TextDrawColor(Logo[0], -319151105);
	TextDrawSetShadow(Logo[0], 0);
	TextDrawSetOutline(Logo[0], 1);
	TextDrawBackgroundColor(Logo[0], 51);
	TextDrawFont(Logo[0], 3);
	TextDrawSetProportional(Logo[0], 1);

	Logo[1] = TextDrawCreate(499.912078, 417.666595, "Cops n Robbers");
	TextDrawLetterSize(Logo[1], 0.479048, 1.699167);
	TextDrawAlignment(Logo[1], 1);
	TextDrawColor(Logo[1], 643428607);
	TextDrawSetShadow(Logo[1], 0);
	TextDrawSetOutline(Logo[1], 1);
	TextDrawBackgroundColor(Logo[1], 51);
	TextDrawFont(Logo[1], 3);
	TextDrawSetProportional(Logo[1], 1);
ALSO

Код:
gTime = TextDrawCreate(605.000000,25.000000,"00:00");
	TextDrawAlignment(gTime,3);
	TextDrawBackgroundColor(gTime,0x000000FF);
	TextDrawFont(gTime,3);
	TextDrawLetterSize(gTime,0.535,2.2);
	TextDrawColor(gTime,COLOR_TIME);
	TextDrawSetOutline(gTime,1);
	TextDrawSetProportional(gTime,1);
	TextDrawSetShadow(gTime,1);

	gDay = TextDrawCreate(610.000000,7.000000,"Sunday");
	TextDrawUseBox(gDay,0);
	TextDrawFont(gDay,3);
	TextDrawLetterSize(gDay,0.6,1.5);
	TextDrawSetShadow(gDay,1);
	TextDrawSetOutline(gDay ,0);
	TextDrawBackgroundColor(gDay, 0x000000FF);
	TextDrawBoxColor(gDay ,0x00000066);
	TextDrawColor(gDay,COLOR_DAY);
	TextDrawTextSize(gDay , -1880.0, -1880.0);
	TextDrawAlignment(gDay,3);
	TextDrawSetOutline(gDay,1);
How can I fix this?

Thanks


Re: Problem with textdraws not showing after a_samp.inc update - Crayder - 13.12.2015

1. Don't just update ONE include. Update all of them!
2. You can't just update an include and expect the server to know what the new functions are, you must update the executables too! Especially samp-server.exe!
3. Post your server logs!


Re: Problem with textdraws not showing after a_samp.inc update - yvoms - 13.12.2015

at your timer put
TextDrawShowForAll(gDay);
TextDrawShowForAll(gTime);