SA-MP Forums Archive
Textdraws Problem - 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: Textdraws Problem (/showthread.php?tid=547295)



Textdraws Problem - janiwi123 - 22.11.2014

Hi, i need help with textdraws, i have a samp roleplay server with modified GM (Started with OverDriver-RP), The problem begins with a Fuel system in a filterscript, The fuel system use 7 Textdraws (2 created for MAX_PLAYERS), In gamemode have a login screen (very basic), i added a logo, i have the ShowTextdraw~ in OnPlayerSpawn, The problem is the next: When a player joins the server, The login screen is loaded (Perfect), But the logo is also loaded.., Only have ShowTextdraw~ with this textdraw in OnPlayerSpawn, the same goes for the fuel system, the textdraw is loaded without calling, please help me


Re: Textdraws Problem - MD5 - 22.11.2014

Not sure what you're referring to? Please post some code to give us an reference to work with.


Re: Textdraws Problem - janiwi123 - 22.11.2014

The textdraw is defined in

Код:
new Text:SLogo0;
new Text:SLogo1;
new Text:SLogo2;
Is created in OnGameModeInit

Код:
SLogo0 = TextDrawCreate(48.000000, 321.000000, "SkexLife RP");
TextDrawBackgroundColor(SLogo0, 255);
TextDrawFont(SLogo0, 1);
TextDrawLetterSize(SLogo0, 0.430000, 2.000000);
TextDrawColor(SLogo0, -1);
TextDrawSetOutline(SLogo0, 0);
TextDrawSetProportional(SLogo0, 1);
TextDrawSetShadow(SLogo0, 1);

SLogo1 = TextDrawCreate(12.000000, 323.000000, "[ ]");
TextDrawBackgroundColor(SLogo1, 255);
TextDrawFont(SLogo1, 2);
TextDrawLetterSize(SLogo1, 0.479999, 1.700000);
TextDrawColor(SLogo1, -2686721);
TextDrawSetOutline(SLogo1, 0);
TextDrawSetProportional(SLogo1, 1);
TextDrawSetShadow(SLogo1, 1);

SLogo2 = TextDrawCreate(111.000000, 323.000000, "[ ]");
TextDrawBackgroundColor(SLogo2, 255);
TextDrawFont(SLogo2, 2);
TextDrawLetterSize(SLogo2, 0.479999, 1.700000);
TextDrawColor(SLogo2, -2686721);
TextDrawSetOutline(SLogo2, 0);
TextDrawSetProportional(SLogo2, 1);
TextDrawSetShadow(SLogo2, 1);
And is called in the next function

Код:
HideMenuLogin(playerid)
{
    TextDrawHideForPlayer(playerid, MOTD);
	for(new i = 0; i < 9; i++) { TextDrawHideForPlayer(playerid, LoginMenu[i]); }
	TextDrawShowForPlayer(playerid, SLogo0);
	TextDrawShowForPlayer(playerid, SLogo1);
	TextDrawShowForPlayer(playerid, SLogo2);
	return 1;
}
the problem is that when entering the textdraw is displayed without running the function that calls it, even, is only shown one of 3 (SLogo0)