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)