SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/05/2019, 09:23 AM   #1
PemburuHantu
Big Clucker
 
PemburuHantu's Avatar
 
Join Date: May 2019
Location: Indonesia ( Gorontalo )
Posts: 71
Reputation: 0
Default TextDraw not showing

Code:
public OnPlayerConnect(playerid)
{
        TDEditor_TD[0] = TextDrawCreate(2.500000, 2.166686, "box");
	TextDrawLetterSize(TDEditor_TD[0], 0.000000, 7.562500);
	TextDrawTextSize(TDEditor_TD[0], 645.000000, 0.000000);
	TextDrawAlignment(TDEditor_TD[0], 1);
	TextDrawColor(TDEditor_TD[0], -1);
	TextDrawUseBox(TDEditor_TD[0], 1);
	TextDrawBoxColor(TDEditor_TD[0], 255);
	TextDrawSetShadow(TDEditor_TD[0], 0);
	TextDrawSetOutline(TDEditor_TD[0], 0);
	TextDrawBackgroundColor(TDEditor_TD[0], 255);
	TextDrawFont(TDEditor_TD[0], 1);
	TextDrawSetProportional(TDEditor_TD[0], 1);
	TextDrawSetShadow(TDEditor_TD[0], 0);

	TDEditor_TD[1] = TextDrawCreate(-0.625000, 360.916809, "box");
	TextDrawLetterSize(TDEditor_TD[1], 0.000000, 9.375000);
	TextDrawTextSize(TDEditor_TD[1], 642.000000, 0.000000);
	TextDrawAlignment(TDEditor_TD[1], 1);
	TextDrawColor(TDEditor_TD[1], -1);
	TextDrawUseBox(TDEditor_TD[1], 1);
	TextDrawBoxColor(TDEditor_TD[1], 255);
	TextDrawSetShadow(TDEditor_TD[1], 0);
	TextDrawSetOutline(TDEditor_TD[1], 0);
	TextDrawBackgroundColor(TDEditor_TD[1], 255);
	TextDrawFont(TDEditor_TD[1], 1);
	TextDrawSetProportional(TDEditor_TD[1], 1);
	TextDrawSetShadow(TDEditor_TD[1], 0);

	TDEditor_TD[2] = TextDrawCreate(449.375000, 360.916534, "United_Gang_War_v3.0");
	TextDrawLetterSize(TDEditor_TD[2], 0.400000, 1.600000);
	TextDrawAlignment(TDEditor_TD[2], 1);
	TextDrawColor(TDEditor_TD[2], -1);
	TextDrawSetShadow(TDEditor_TD[2], 0);
	TextDrawSetOutline(TDEditor_TD[2], 0);
	TextDrawBackgroundColor(TDEditor_TD[2], 255);
	TextDrawFont(TDEditor_TD[2], 2);
	TextDrawSetProportional(TDEditor_TD[2], 1);
	TextDrawSetShadow(TDEditor_TD[2], 0);

	TDEditor_TD[3] = TextDrawCreate(-60.625000, 354.500091, "LD_SPAC:white");
	TextDrawLetterSize(TDEditor_TD[3], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[3], 784.000000, 4.000000);
	TextDrawAlignment(TDEditor_TD[3], 1);
	TextDrawColor(TDEditor_TD[3], -1);
	TextDrawSetShadow(TDEditor_TD[3], 0);
	TextDrawSetOutline(TDEditor_TD[3], 0);
	TextDrawBackgroundColor(TDEditor_TD[3], 255);
	TextDrawFont(TDEditor_TD[3], 4);
	TextDrawSetProportional(TDEditor_TD[3], 0);
	TextDrawSetShadow(TDEditor_TD[3], 0);

	TDEditor_TD[4] = TextDrawCreate(-58.125000, 72.750129, "LD_SPAC:white");
	TextDrawLetterSize(TDEditor_TD[4], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[4], 784.000000, 4.000000);
	TextDrawAlignment(TDEditor_TD[4], 1);
	TextDrawColor(TDEditor_TD[4], -1);
	TextDrawSetShadow(TDEditor_TD[4], 0);
	TextDrawSetOutline(TDEditor_TD[4], 0);
	TextDrawBackgroundColor(TDEditor_TD[4], 255);
	TextDrawFont(TDEditor_TD[4], 4);
	TextDrawSetProportional(TDEditor_TD[4], 0);
	TextDrawSetShadow(TDEditor_TD[4], 0);

	TDEditor_TD[5] = TextDrawCreate(213.750000, 268.750122, "");
	TextDrawLetterSize(TDEditor_TD[5], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[5], 99.000000, 97.000000);
	TextDrawAlignment(TDEditor_TD[5], 1);
	TextDrawColor(TDEditor_TD[5], -1);
	TextDrawSetShadow(TDEditor_TD[5], 0);
	TextDrawSetOutline(TDEditor_TD[5], 0);
	TextDrawBackgroundColor(TDEditor_TD[5], 0);
	TextDrawFont(TDEditor_TD[5], 5);
	TextDrawSetProportional(TDEditor_TD[5], 0);
	TextDrawSetShadow(TDEditor_TD[5], 0);
	TextDrawSetPreviewModel(TDEditor_TD[5], 2);
	TextDrawSetPreviewRot(TDEditor_TD[5], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[6] = TextDrawCreate(238.125000, 265.250030, "");
	TextDrawLetterSize(TDEditor_TD[6], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[6], 93.000000, 102.000000);
	TextDrawAlignment(TDEditor_TD[6], 1);
	TextDrawColor(TDEditor_TD[6], -1);
	TextDrawSetShadow(TDEditor_TD[6], 0);
	TextDrawSetOutline(TDEditor_TD[6], 0);
	TextDrawBackgroundColor(TDEditor_TD[6], 0);
	TextDrawFont(TDEditor_TD[6], 5);
	TextDrawSetProportional(TDEditor_TD[6], 0);
	TextDrawSetShadow(TDEditor_TD[6], 0);
	TextDrawSetPreviewModel(TDEditor_TD[6], 105);
	TextDrawSetPreviewRot(TDEditor_TD[6], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[7] = TextDrawCreate(254.375000, 265.250091, "");
	TextDrawLetterSize(TDEditor_TD[7], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[7], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[7], 1);
	TextDrawColor(TDEditor_TD[7], -1);
	TextDrawSetShadow(TDEditor_TD[7], 0);
	TextDrawSetOutline(TDEditor_TD[7], 0);
	TextDrawBackgroundColor(TDEditor_TD[7], 0);
	TextDrawFont(TDEditor_TD[7], 5);
	TextDrawSetProportional(TDEditor_TD[7], 0);
	TextDrawSetShadow(TDEditor_TD[7], 0);
	TextDrawSetPreviewModel(TDEditor_TD[7], 106);
	TextDrawSetPreviewRot(TDEditor_TD[7], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[8] = TextDrawCreate(241.250000, 266.416778, "");
	TextDrawLetterSize(TDEditor_TD[8], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[8], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[8], 1);
	TextDrawColor(TDEditor_TD[8], -1);
	TextDrawSetShadow(TDEditor_TD[8], 0);
	TextDrawSetOutline(TDEditor_TD[8], 0);
	TextDrawBackgroundColor(TDEditor_TD[8], 0);
	TextDrawFont(TDEditor_TD[8], 5);
	TextDrawSetProportional(TDEditor_TD[8], 0);
	TextDrawSetShadow(TDEditor_TD[8], 0);
	TextDrawSetPreviewModel(TDEditor_TD[8], 107);
	TextDrawSetPreviewRot(TDEditor_TD[8], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[9] = TextDrawCreate(275.000000, 265.250091, "");
	TextDrawLetterSize(TDEditor_TD[9], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[9], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[9], 1);
	TextDrawColor(TDEditor_TD[9], -1);
	TextDrawSetShadow(TDEditor_TD[9], 0);
	TextDrawSetOutline(TDEditor_TD[9], 0);
	TextDrawBackgroundColor(TDEditor_TD[9], 0);
	TextDrawFont(TDEditor_TD[9], 5);
	TextDrawSetProportional(TDEditor_TD[9], 0);
	TextDrawSetShadow(TDEditor_TD[9], 0);
	TextDrawSetPreviewModel(TDEditor_TD[9], 102);
	TextDrawSetPreviewRot(TDEditor_TD[9], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[10] = TextDrawCreate(261.875000, 266.416778, "");
	TextDrawLetterSize(TDEditor_TD[10], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[10], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[10], 1);
	TextDrawColor(TDEditor_TD[10], -1);
	TextDrawSetShadow(TDEditor_TD[10], 0);
	TextDrawSetOutline(TDEditor_TD[10], 0);
	TextDrawBackgroundColor(TDEditor_TD[10], 0);
	TextDrawFont(TDEditor_TD[10], 5);
	TextDrawSetProportional(TDEditor_TD[10], 0);
	TextDrawSetShadow(TDEditor_TD[10], 0);
	TextDrawSetPreviewModel(TDEditor_TD[10], 104);
	TextDrawSetPreviewRot(TDEditor_TD[10], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[11] = TextDrawCreate(290.000000, 268.166748, "");
	TextDrawLetterSize(TDEditor_TD[11], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[11], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[11], 1);
	TextDrawColor(TDEditor_TD[11], -1);
	TextDrawSetShadow(TDEditor_TD[11], 0);
	TextDrawSetOutline(TDEditor_TD[11], 0);
	TextDrawBackgroundColor(TDEditor_TD[11], 0);
	TextDrawFont(TDEditor_TD[11], 5);
	TextDrawSetProportional(TDEditor_TD[11], 0);
	TextDrawSetShadow(TDEditor_TD[11], 0);
	TextDrawSetPreviewModel(TDEditor_TD[11], 103);
	TextDrawSetPreviewRot(TDEditor_TD[11], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[12] = TextDrawCreate(220.000000, 269.333404, "");
	TextDrawLetterSize(TDEditor_TD[12], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[12], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[12], 1);
	TextDrawColor(TDEditor_TD[12], -1);
	TextDrawSetShadow(TDEditor_TD[12], 0);
	TextDrawSetOutline(TDEditor_TD[12], 0);
	TextDrawBackgroundColor(TDEditor_TD[12], 0);
	TextDrawFont(TDEditor_TD[12], 5);
	TextDrawSetProportional(TDEditor_TD[12], 0);
	TextDrawSetShadow(TDEditor_TD[12], 0);
	TextDrawSetPreviewModel(TDEditor_TD[12], 108);
	TextDrawSetPreviewRot(TDEditor_TD[12], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[13] = TextDrawCreate(182.500000, 267.000030, "");
	TextDrawLetterSize(TDEditor_TD[13], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[13], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[13], 1);
	TextDrawColor(TDEditor_TD[13], -1);
	TextDrawSetShadow(TDEditor_TD[13], 0);
	TextDrawSetOutline(TDEditor_TD[13], 0);
	TextDrawBackgroundColor(TDEditor_TD[13], 0);
	TextDrawFont(TDEditor_TD[13], 5);
	TextDrawSetProportional(TDEditor_TD[13], 0);
	TextDrawSetShadow(TDEditor_TD[13], 0);
	TextDrawSetPreviewModel(TDEditor_TD[13], 109);
	TextDrawSetPreviewRot(TDEditor_TD[13], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[14] = TextDrawCreate(195.625000, 268.166656, "");
	TextDrawLetterSize(TDEditor_TD[14], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[14], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[14], 1);
	TextDrawColor(TDEditor_TD[14], -1);
	TextDrawSetShadow(TDEditor_TD[14], 0);
	TextDrawSetOutline(TDEditor_TD[14], 0);
	TextDrawBackgroundColor(TDEditor_TD[14], 0);
	TextDrawFont(TDEditor_TD[14], 5);
	TextDrawSetProportional(TDEditor_TD[14], 0);
	TextDrawSetShadow(TDEditor_TD[14], 0);
	TextDrawSetPreviewModel(TDEditor_TD[14], 110);
	TextDrawSetPreviewRot(TDEditor_TD[14], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[15] = TextDrawCreate(304.375000, 269.333343, "");
	TextDrawLetterSize(TDEditor_TD[15], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[15], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[15], 1);
	TextDrawColor(TDEditor_TD[15], -1);
	TextDrawSetShadow(TDEditor_TD[15], 0);
	TextDrawSetOutline(TDEditor_TD[15], 0);
	TextDrawBackgroundColor(TDEditor_TD[15], 0);
	TextDrawFont(TDEditor_TD[15], 5);
	TextDrawSetProportional(TDEditor_TD[15], 0);
	TextDrawSetShadow(TDEditor_TD[15], 0);
	TextDrawSetPreviewModel(TDEditor_TD[15], 268);
	TextDrawSetPreviewRot(TDEditor_TD[15], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[16] = TextDrawCreate(319.375000, 263.500061, "");
	TextDrawLetterSize(TDEditor_TD[16], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[16], 118.000000, 102.000000);
	TextDrawAlignment(TDEditor_TD[16], 1);
	TextDrawColor(TDEditor_TD[16], -1);
	TextDrawSetShadow(TDEditor_TD[16], 0);
	TextDrawSetOutline(TDEditor_TD[16], 0);
	TextDrawBackgroundColor(TDEditor_TD[16], 0);
	TextDrawFont(TDEditor_TD[16], 5);
	TextDrawSetProportional(TDEditor_TD[16], 0);
	TextDrawSetShadow(TDEditor_TD[16], 0);
	TextDrawSetPreviewModel(TDEditor_TD[16], 1);
	TextDrawSetPreviewRot(TDEditor_TD[16], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[17] = TextDrawCreate(263.750000, 135.166671, "WELCOME_TO");
	TextDrawLetterSize(TDEditor_TD[17], 0.400000, 1.600000);
	TextDrawAlignment(TDEditor_TD[17], 1);
	TextDrawColor(TDEditor_TD[17], -1);
	TextDrawSetShadow(TDEditor_TD[17], 2);
	TextDrawSetOutline(TDEditor_TD[17], 0);
	TextDrawBackgroundColor(TDEditor_TD[17], 255);
	TextDrawFont(TDEditor_TD[17], 1);
	TextDrawSetProportional(TDEditor_TD[17], 1);
	TextDrawSetShadow(TDEditor_TD[17], 2);

	TDEditor_TD[18] = TextDrawCreate(258.125000, 167.250061, "UNITED");
	TextDrawLetterSize(TDEditor_TD[18], 0.899999, 1.600000);
	TextDrawAlignment(TDEditor_TD[18], 1);
	TextDrawColor(TDEditor_TD[18], -1);
	TextDrawSetShadow(TDEditor_TD[18], 3);
	TextDrawSetOutline(TDEditor_TD[18], 0);
	TextDrawBackgroundColor(TDEditor_TD[18], 255);
	TextDrawFont(TDEditor_TD[18], 3);
	TextDrawSetProportional(TDEditor_TD[18], 1);
	TextDrawSetShadow(TDEditor_TD[18], 3);

	TDEditor_TD[19] = TextDrawCreate(235.000000, 185.916748, "GANG_WAR");
	TextDrawLetterSize(TDEditor_TD[19], 0.899999, 1.600000);
	TextDrawAlignment(TDEditor_TD[19], 1);
	TextDrawColor(TDEditor_TD[19], -1);
	TextDrawSetShadow(TDEditor_TD[19], 3);
	TextDrawSetOutline(TDEditor_TD[19], 0);
	TextDrawBackgroundColor(TDEditor_TD[19], 255);
	TextDrawFont(TDEditor_TD[19], 3);
	TextDrawSetProportional(TDEditor_TD[19], 1);
	TextDrawSetShadow(TDEditor_TD[19], 3);

	TDEditor_TD[20] = TextDrawCreate(171.875000, 127.583320, "LD_SPAC:white");
	TextDrawLetterSize(TDEditor_TD[20], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[20], 279.000000, 130.000000);
	TextDrawAlignment(TDEditor_TD[20], 1);
	TextDrawColor(TDEditor_TD[20], 255);
	TextDrawSetShadow(TDEditor_TD[20], 0);
	TextDrawSetOutline(TDEditor_TD[20], 0);
	TextDrawBackgroundColor(TDEditor_TD[20], 255);
	TextDrawFont(TDEditor_TD[20], 4);
	TextDrawSetProportional(TDEditor_TD[20], 0);
	TextDrawSetShadow(TDEditor_TD[20], 0);

	TDEditor_TD[21] = TextDrawCreate(178.125000, 134.583312, "LD_SPAC:white");
	TextDrawLetterSize(TDEditor_TD[21], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[21], 265.000000, 116.000000);
	TextDrawAlignment(TDEditor_TD[21], 1);
	TextDrawColor(TDEditor_TD[21], -2139062017);
	TextDrawSetShadow(TDEditor_TD[21], 0);
	TextDrawSetOutline(TDEditor_TD[21], 0);
	TextDrawBackgroundColor(TDEditor_TD[21], 255);
	TextDrawFont(TDEditor_TD[21], 4);
	TextDrawSetProportional(TDEditor_TD[21], 0);
	TextDrawSetShadow(TDEditor_TD[21], 0);

	TDEditor_TD[22] = TextDrawCreate(180.000000, 233.750015, "samp-ugw.epizy.com");
	TextDrawLetterSize(TDEditor_TD[22], 0.400000, 1.600000);
	TextDrawAlignment(TDEditor_TD[22], 1);
	TextDrawColor(TDEditor_TD[22], -1);
	TextDrawSetShadow(TDEditor_TD[22], 1);
	TextDrawSetOutline(TDEditor_TD[22], 0);
	TextDrawBackgroundColor(TDEditor_TD[22], 255);
	TextDrawFont(TDEditor_TD[22], 1);
	TextDrawSetProportional(TDEditor_TD[22], 1);
	TextDrawSetShadow(TDEditor_TD[22], 1);

	TDEditor_TD[23] = TextDrawCreate(178.125000, 221.500015, "Forum_");
	TextDrawLetterSize(TDEditor_TD[23], 0.400000, 1.600000);
	TextDrawAlignment(TDEditor_TD[23], 1);
	TextDrawColor(TDEditor_TD[23], -1);
	TextDrawSetShadow(TDEditor_TD[23], 1);
	TextDrawSetOutline(TDEditor_TD[23], 0);
	TextDrawBackgroundColor(TDEditor_TD[23], 255);
	TextDrawFont(TDEditor_TD[23], 1);
	TextDrawSetProportional(TDEditor_TD[23], 1);
	TextDrawSetShadow(TDEditor_TD[23], 1);

	TDEditor_TD[24] = TextDrawCreate(4.375000, 3.916665, "update_'12,May,2019'");
	TextDrawLetterSize(TDEditor_TD[24], 0.256874, 1.016665);
	TextDrawAlignment(TDEditor_TD[24], 1);
	TextDrawColor(TDEditor_TD[24], -1);
	TextDrawSetShadow(TDEditor_TD[24], 0);
	TextDrawSetOutline(TDEditor_TD[24], 0);
	TextDrawBackgroundColor(TDEditor_TD[24], 255);
	TextDrawFont(TDEditor_TD[24], 1);
	TextDrawSetProportional(TDEditor_TD[24], 1);
	TextDrawSetShadow(TDEditor_TD[24], 0);

	TDEditor_TD[25] = TextDrawCreate(45.625000, 199.333450, "");
	TextDrawLetterSize(TDEditor_TD[25], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[25], 213.000000, 244.000000);
	TextDrawAlignment(TDEditor_TD[25], 1);
	TextDrawColor(TDEditor_TD[25], -1);
	TextDrawSetShadow(TDEditor_TD[25], 0);
	TextDrawSetOutline(TDEditor_TD[25], 0);
	TextDrawBackgroundColor(TDEditor_TD[25], 0);
	TextDrawFont(TDEditor_TD[25], 5);
	TextDrawSetProportional(TDEditor_TD[25], 0);
	TextDrawSetShadow(TDEditor_TD[25], 0);
	TextDrawSetPreviewModel(TDEditor_TD[25], 412);
	TextDrawSetPreviewRot(TDEditor_TD[25], 0.000000, 0.000000, -49.000000, 1.000000);
	TextDrawSetPreviewVehCol(TDEditor_TD[25], 1, 1);

	TDEditor_TD[26] = TextDrawCreate(363.750000, 198.750106, "");
	TextDrawLetterSize(TDEditor_TD[26], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[26], 213.000000, 244.000000);
	TextDrawAlignment(TDEditor_TD[26], 1);
	TextDrawColor(TDEditor_TD[26], -1);
	TextDrawSetShadow(TDEditor_TD[26], 0);
	TextDrawSetOutline(TDEditor_TD[26], 0);
	TextDrawBackgroundColor(TDEditor_TD[26], 0);
	TextDrawFont(TDEditor_TD[26], 5);
	TextDrawSetProportional(TDEditor_TD[26], 0);
	TextDrawSetShadow(TDEditor_TD[26], 0);
	TextDrawSetPreviewModel(TDEditor_TD[26], 412);
	TextDrawSetPreviewRot(TDEditor_TD[26], 0.000000, 0.000000, 49.000000, 1.000000);
	TextDrawSetPreviewVehCol(TDEditor_TD[26], 1, 1);
 	SetTimerEx("HiideTextDraw", 5000, false, "ii", playerid);

	TogglePlayerSpectating(playerid, true);
	return 1;
}

forward HideTextDraw(playerid);
public HideTextDraw(playerid)
{
     TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[4]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[5]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[6]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[7]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[8]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[9]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[10]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[11]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[12]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[13]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[14]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[15]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[16]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[17]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[18]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[19]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[20]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[21]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[22]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[23]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[24]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[25]);
     TextDrawHideForPlayer(playerid, TDEditor_TD[26]);

     TogglePlayerSpectating(playerid, false);

     CallLocalFunction("OnPlayerRequestClass", "i", playerid, 0);

     return 1;
}
Help me for fix it,,,,
PemburuHantu is offline   Reply With Quote
Old 12/05/2019, 10:03 AM   #2
Proxus
Big Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 172
Reputation: 4
Default Re: TextDraw not showing

Pretty sure you need to use TextDrawShowForPlayer.
https://wiki.sa-mp.com/wiki/TextDrawShowForPlayer

So, when a player joins in OnPlayerConnect, the playerid parameter of OnPlayerConnect would be the id you show it for.
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"
Proxus is offline   Reply With Quote
Old 12/05/2019, 12:04 PM   #3
jasperschellekens
Gangsta
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Gehenna
Posts: 724
Reputation: 48
Default Re: TextDraw not showing

Exactly what Proxus said, you are creating and hiding them in a function, but you never show them for the player. Use TextDrawShowForPlayer whenever you want the textdraw to show.
jasperschellekens is offline   Reply With Quote
Old 12/05/2019, 01:35 PM   #4
Koreadars
Big Clucker
 
Join Date: Mar 2019
Location: Czech Republic, Prdelákov.
Posts: 127
Reputation: 6
Default Re: TextDraw not showing

You're doing it one by one. Use a loop.
Code:
public OnGameModeInit(){
	TDEditor_TD[0] = TextDrawCreate(2.500000, 2.166686, "box");
	TextDrawLetterSize(TDEditor_TD[0], 0.000000, 7.562500);
	TextDrawTextSize(TDEditor_TD[0], 645.000000, 0.000000);
	TextDrawAlignment(TDEditor_TD[0], 1);
	TextDrawColor(TDEditor_TD[0], -1);
	TextDrawUseBox(TDEditor_TD[0], 1);
	TextDrawBoxColor(TDEditor_TD[0], 255);
	TextDrawSetShadow(TDEditor_TD[0], 0);
	TextDrawSetOutline(TDEditor_TD[0], 0);
	TextDrawBackgroundColor(TDEditor_TD[0], 255);
	TextDrawFont(TDEditor_TD[0], 1);
	TextDrawSetProportional(TDEditor_TD[0], 1);
	TextDrawSetShadow(TDEditor_TD[0], 0);

	TDEditor_TD[1] = TextDrawCreate(-0.625000, 360.916809, "box");
	TextDrawLetterSize(TDEditor_TD[1], 0.000000, 9.375000);
	TextDrawTextSize(TDEditor_TD[1], 642.000000, 0.000000);
	TextDrawAlignment(TDEditor_TD[1], 1);
	TextDrawColor(TDEditor_TD[1], -1);
	TextDrawUseBox(TDEditor_TD[1], 1);
	TextDrawBoxColor(TDEditor_TD[1], 255);
	TextDrawSetShadow(TDEditor_TD[1], 0);
	TextDrawSetOutline(TDEditor_TD[1], 0);
	TextDrawBackgroundColor(TDEditor_TD[1], 255);
	TextDrawFont(TDEditor_TD[1], 1);
	TextDrawSetProportional(TDEditor_TD[1], 1);
	TextDrawSetShadow(TDEditor_TD[1], 0);

	TDEditor_TD[2] = TextDrawCreate(449.375000, 360.916534, "United_Gang_War_v3.0");
	TextDrawLetterSize(TDEditor_TD[2], 0.400000, 1.600000);
	TextDrawAlignment(TDEditor_TD[2], 1);
	TextDrawColor(TDEditor_TD[2], -1);
	TextDrawSetShadow(TDEditor_TD[2], 0);
	TextDrawSetOutline(TDEditor_TD[2], 0);
	TextDrawBackgroundColor(TDEditor_TD[2], 255);
	TextDrawFont(TDEditor_TD[2], 2);
	TextDrawSetProportional(TDEditor_TD[2], 1);
	TextDrawSetShadow(TDEditor_TD[2], 0);

	TDEditor_TD[3] = TextDrawCreate(-60.625000, 354.500091, "LD_SPAC:white");
	TextDrawLetterSize(TDEditor_TD[3], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[3], 784.000000, 4.000000);
	TextDrawAlignment(TDEditor_TD[3], 1);
	TextDrawColor(TDEditor_TD[3], -1);
	TextDrawSetShadow(TDEditor_TD[3], 0);
	TextDrawSetOutline(TDEditor_TD[3], 0);
	TextDrawBackgroundColor(TDEditor_TD[3], 255);
	TextDrawFont(TDEditor_TD[3], 4);
	TextDrawSetProportional(TDEditor_TD[3], 0);
	TextDrawSetShadow(TDEditor_TD[3], 0);

	TDEditor_TD[4] = TextDrawCreate(-58.125000, 72.750129, "LD_SPAC:white");
	TextDrawLetterSize(TDEditor_TD[4], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[4], 784.000000, 4.000000);
	TextDrawAlignment(TDEditor_TD[4], 1);
	TextDrawColor(TDEditor_TD[4], -1);
	TextDrawSetShadow(TDEditor_TD[4], 0);
	TextDrawSetOutline(TDEditor_TD[4], 0);
	TextDrawBackgroundColor(TDEditor_TD[4], 255);
	TextDrawFont(TDEditor_TD[4], 4);
	TextDrawSetProportional(TDEditor_TD[4], 0);
	TextDrawSetShadow(TDEditor_TD[4], 0);

	TDEditor_TD[5] = TextDrawCreate(213.750000, 268.750122, "");
	TextDrawLetterSize(TDEditor_TD[5], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[5], 99.000000, 97.000000);
	TextDrawAlignment(TDEditor_TD[5], 1);
	TextDrawColor(TDEditor_TD[5], -1);
	TextDrawSetShadow(TDEditor_TD[5], 0);
	TextDrawSetOutline(TDEditor_TD[5], 0);
	TextDrawBackgroundColor(TDEditor_TD[5], 0);
	TextDrawFont(TDEditor_TD[5], 5);
	TextDrawSetProportional(TDEditor_TD[5], 0);
	TextDrawSetShadow(TDEditor_TD[5], 0);
	TextDrawSetPreviewModel(TDEditor_TD[5], 2);
	TextDrawSetPreviewRot(TDEditor_TD[5], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[6] = TextDrawCreate(238.125000, 265.250030, "");
	TextDrawLetterSize(TDEditor_TD[6], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[6], 93.000000, 102.000000);
	TextDrawAlignment(TDEditor_TD[6], 1);
	TextDrawColor(TDEditor_TD[6], -1);
	TextDrawSetShadow(TDEditor_TD[6], 0);
	TextDrawSetOutline(TDEditor_TD[6], 0);
	TextDrawBackgroundColor(TDEditor_TD[6], 0);
	TextDrawFont(TDEditor_TD[6], 5);
	TextDrawSetProportional(TDEditor_TD[6], 0);
	TextDrawSetShadow(TDEditor_TD[6], 0);
	TextDrawSetPreviewModel(TDEditor_TD[6], 105);
	TextDrawSetPreviewRot(TDEditor_TD[6], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[7] = TextDrawCreate(254.375000, 265.250091, "");
	TextDrawLetterSize(TDEditor_TD[7], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[7], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[7], 1);
	TextDrawColor(TDEditor_TD[7], -1);
	TextDrawSetShadow(TDEditor_TD[7], 0);
	TextDrawSetOutline(TDEditor_TD[7], 0);
	TextDrawBackgroundColor(TDEditor_TD[7], 0);
	TextDrawFont(TDEditor_TD[7], 5);
	TextDrawSetProportional(TDEditor_TD[7], 0);
	TextDrawSetShadow(TDEditor_TD[7], 0);
	TextDrawSetPreviewModel(TDEditor_TD[7], 106);
	TextDrawSetPreviewRot(TDEditor_TD[7], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[8] = TextDrawCreate(241.250000, 266.416778, "");
	TextDrawLetterSize(TDEditor_TD[8], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[8], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[8], 1);
	TextDrawColor(TDEditor_TD[8], -1);
	TextDrawSetShadow(TDEditor_TD[8], 0);
	TextDrawSetOutline(TDEditor_TD[8], 0);
	TextDrawBackgroundColor(TDEditor_TD[8], 0);
	TextDrawFont(TDEditor_TD[8], 5);
	TextDrawSetProportional(TDEditor_TD[8], 0);
	TextDrawSetShadow(TDEditor_TD[8], 0);
	TextDrawSetPreviewModel(TDEditor_TD[8], 107);
	TextDrawSetPreviewRot(TDEditor_TD[8], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[9] = TextDrawCreate(275.000000, 265.250091, "");
	TextDrawLetterSize(TDEditor_TD[9], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[9], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[9], 1);
	TextDrawColor(TDEditor_TD[9], -1);
	TextDrawSetShadow(TDEditor_TD[9], 0);
	TextDrawSetOutline(TDEditor_TD[9], 0);
	TextDrawBackgroundColor(TDEditor_TD[9], 0);
	TextDrawFont(TDEditor_TD[9], 5);
	TextDrawSetProportional(TDEditor_TD[9], 0);
	TextDrawSetShadow(TDEditor_TD[9], 0);
	TextDrawSetPreviewModel(TDEditor_TD[9], 102);
	TextDrawSetPreviewRot(TDEditor_TD[9], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[10] = TextDrawCreate(261.875000, 266.416778, "");
	TextDrawLetterSize(TDEditor_TD[10], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[10], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[10], 1);
	TextDrawColor(TDEditor_TD[10], -1);
	TextDrawSetShadow(TDEditor_TD[10], 0);
	TextDrawSetOutline(TDEditor_TD[10], 0);
	TextDrawBackgroundColor(TDEditor_TD[10], 0);
	TextDrawFont(TDEditor_TD[10], 5);
	TextDrawSetProportional(TDEditor_TD[10], 0);
	TextDrawSetShadow(TDEditor_TD[10], 0);
	TextDrawSetPreviewModel(TDEditor_TD[10], 104);
	TextDrawSetPreviewRot(TDEditor_TD[10], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[11] = TextDrawCreate(290.000000, 268.166748, "");
	TextDrawLetterSize(TDEditor_TD[11], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[11], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[11], 1);
	TextDrawColor(TDEditor_TD[11], -1);
	TextDrawSetShadow(TDEditor_TD[11], 0);
	TextDrawSetOutline(TDEditor_TD[11], 0);
	TextDrawBackgroundColor(TDEditor_TD[11], 0);
	TextDrawFont(TDEditor_TD[11], 5);
	TextDrawSetProportional(TDEditor_TD[11], 0);
	TextDrawSetShadow(TDEditor_TD[11], 0);
	TextDrawSetPreviewModel(TDEditor_TD[11], 103);
	TextDrawSetPreviewRot(TDEditor_TD[11], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[12] = TextDrawCreate(220.000000, 269.333404, "");
	TextDrawLetterSize(TDEditor_TD[12], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[12], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[12], 1);
	TextDrawColor(TDEditor_TD[12], -1);
	TextDrawSetShadow(TDEditor_TD[12], 0);
	TextDrawSetOutline(TDEditor_TD[12], 0);
	TextDrawBackgroundColor(TDEditor_TD[12], 0);
	TextDrawFont(TDEditor_TD[12], 5);
	TextDrawSetProportional(TDEditor_TD[12], 0);
	TextDrawSetShadow(TDEditor_TD[12], 0);
	TextDrawSetPreviewModel(TDEditor_TD[12], 108);
	TextDrawSetPreviewRot(TDEditor_TD[12], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[13] = TextDrawCreate(182.500000, 267.000030, "");
	TextDrawLetterSize(TDEditor_TD[13], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[13], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[13], 1);
	TextDrawColor(TDEditor_TD[13], -1);
	TextDrawSetShadow(TDEditor_TD[13], 0);
	TextDrawSetOutline(TDEditor_TD[13], 0);
	TextDrawBackgroundColor(TDEditor_TD[13], 0);
	TextDrawFont(TDEditor_TD[13], 5);
	TextDrawSetProportional(TDEditor_TD[13], 0);
	TextDrawSetShadow(TDEditor_TD[13], 0);
	TextDrawSetPreviewModel(TDEditor_TD[13], 109);
	TextDrawSetPreviewRot(TDEditor_TD[13], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[14] = TextDrawCreate(195.625000, 268.166656, "");
	TextDrawLetterSize(TDEditor_TD[14], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[14], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[14], 1);
	TextDrawColor(TDEditor_TD[14], -1);
	TextDrawSetShadow(TDEditor_TD[14], 0);
	TextDrawSetOutline(TDEditor_TD[14], 0);
	TextDrawBackgroundColor(TDEditor_TD[14], 0);
	TextDrawFont(TDEditor_TD[14], 5);
	TextDrawSetProportional(TDEditor_TD[14], 0);
	TextDrawSetShadow(TDEditor_TD[14], 0);
	TextDrawSetPreviewModel(TDEditor_TD[14], 110);
	TextDrawSetPreviewRot(TDEditor_TD[14], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[15] = TextDrawCreate(304.375000, 269.333343, "");
	TextDrawLetterSize(TDEditor_TD[15], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[15], 114.000000, 98.000000);
	TextDrawAlignment(TDEditor_TD[15], 1);
	TextDrawColor(TDEditor_TD[15], -1);
	TextDrawSetShadow(TDEditor_TD[15], 0);
	TextDrawSetOutline(TDEditor_TD[15], 0);
	TextDrawBackgroundColor(TDEditor_TD[15], 0);
	TextDrawFont(TDEditor_TD[15], 5);
	TextDrawSetProportional(TDEditor_TD[15], 0);
	TextDrawSetShadow(TDEditor_TD[15], 0);
	TextDrawSetPreviewModel(TDEditor_TD[15], 268);
	TextDrawSetPreviewRot(TDEditor_TD[15], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[16] = TextDrawCreate(319.375000, 263.500061, "");
	TextDrawLetterSize(TDEditor_TD[16], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[16], 118.000000, 102.000000);
	TextDrawAlignment(TDEditor_TD[16], 1);
	TextDrawColor(TDEditor_TD[16], -1);
	TextDrawSetShadow(TDEditor_TD[16], 0);
	TextDrawSetOutline(TDEditor_TD[16], 0);
	TextDrawBackgroundColor(TDEditor_TD[16], 0);
	TextDrawFont(TDEditor_TD[16], 5);
	TextDrawSetProportional(TDEditor_TD[16], 0);
	TextDrawSetShadow(TDEditor_TD[16], 0);
	TextDrawSetPreviewModel(TDEditor_TD[16], 1);
	TextDrawSetPreviewRot(TDEditor_TD[16], 0.000000, 0.000000, 0.000000, 1.000000);

	TDEditor_TD[17] = TextDrawCreate(263.750000, 135.166671, "WELCOME_TO");
	TextDrawLetterSize(TDEditor_TD[17], 0.400000, 1.600000);
	TextDrawAlignment(TDEditor_TD[17], 1);
	TextDrawColor(TDEditor_TD[17], -1);
	TextDrawSetShadow(TDEditor_TD[17], 2);
	TextDrawSetOutline(TDEditor_TD[17], 0);
	TextDrawBackgroundColor(TDEditor_TD[17], 255);
	TextDrawFont(TDEditor_TD[17], 1);
	TextDrawSetProportional(TDEditor_TD[17], 1);
	TextDrawSetShadow(TDEditor_TD[17], 2);

	TDEditor_TD[18] = TextDrawCreate(258.125000, 167.250061, "UNITED");
	TextDrawLetterSize(TDEditor_TD[18], 0.899999, 1.600000);
	TextDrawAlignment(TDEditor_TD[18], 1);
	TextDrawColor(TDEditor_TD[18], -1);
	TextDrawSetShadow(TDEditor_TD[18], 3);
	TextDrawSetOutline(TDEditor_TD[18], 0);
	TextDrawBackgroundColor(TDEditor_TD[18], 255);
	TextDrawFont(TDEditor_TD[18], 3);
	TextDrawSetProportional(TDEditor_TD[18], 1);
	TextDrawSetShadow(TDEditor_TD[18], 3);

	TDEditor_TD[19] = TextDrawCreate(235.000000, 185.916748, "GANG_WAR");
	TextDrawLetterSize(TDEditor_TD[19], 0.899999, 1.600000);
	TextDrawAlignment(TDEditor_TD[19], 1);
	TextDrawColor(TDEditor_TD[19], -1);
	TextDrawSetShadow(TDEditor_TD[19], 3);
	TextDrawSetOutline(TDEditor_TD[19], 0);
	TextDrawBackgroundColor(TDEditor_TD[19], 255);
	TextDrawFont(TDEditor_TD[19], 3);
	TextDrawSetProportional(TDEditor_TD[19], 1);
	TextDrawSetShadow(TDEditor_TD[19], 3);

	TDEditor_TD[20] = TextDrawCreate(171.875000, 127.583320, "LD_SPAC:white");
	TextDrawLetterSize(TDEditor_TD[20], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[20], 279.000000, 130.000000);
	TextDrawAlignment(TDEditor_TD[20], 1);
	TextDrawColor(TDEditor_TD[20], 255);
	TextDrawSetShadow(TDEditor_TD[20], 0);
	TextDrawSetOutline(TDEditor_TD[20], 0);
	TextDrawBackgroundColor(TDEditor_TD[20], 255);
	TextDrawFont(TDEditor_TD[20], 4);
	TextDrawSetProportional(TDEditor_TD[20], 0);
	TextDrawSetShadow(TDEditor_TD[20], 0);

	TDEditor_TD[21] = TextDrawCreate(178.125000, 134.583312, "LD_SPAC:white");
	TextDrawLetterSize(TDEditor_TD[21], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[21], 265.000000, 116.000000);
	TextDrawAlignment(TDEditor_TD[21], 1);
	TextDrawColor(TDEditor_TD[21], -2139062017);
	TextDrawSetShadow(TDEditor_TD[21], 0);
	TextDrawSetOutline(TDEditor_TD[21], 0);
	TextDrawBackgroundColor(TDEditor_TD[21], 255);
	TextDrawFont(TDEditor_TD[21], 4);
	TextDrawSetProportional(TDEditor_TD[21], 0);
	TextDrawSetShadow(TDEditor_TD[21], 0);

	TDEditor_TD[22] = TextDrawCreate(180.000000, 233.750015, "samp-ugw.epizy.com");
	TextDrawLetterSize(TDEditor_TD[22], 0.400000, 1.600000);
	TextDrawAlignment(TDEditor_TD[22], 1);
	TextDrawColor(TDEditor_TD[22], -1);
	TextDrawSetShadow(TDEditor_TD[22], 1);
	TextDrawSetOutline(TDEditor_TD[22], 0);
	TextDrawBackgroundColor(TDEditor_TD[22], 255);
	TextDrawFont(TDEditor_TD[22], 1);
	TextDrawSetProportional(TDEditor_TD[22], 1);
	TextDrawSetShadow(TDEditor_TD[22], 1);

	TDEditor_TD[23] = TextDrawCreate(178.125000, 221.500015, "Forum_");
	TextDrawLetterSize(TDEditor_TD[23], 0.400000, 1.600000);
	TextDrawAlignment(TDEditor_TD[23], 1);
	TextDrawColor(TDEditor_TD[23], -1);
	TextDrawSetShadow(TDEditor_TD[23], 1);
	TextDrawSetOutline(TDEditor_TD[23], 0);
	TextDrawBackgroundColor(TDEditor_TD[23], 255);
	TextDrawFont(TDEditor_TD[23], 1);
	TextDrawSetProportional(TDEditor_TD[23], 1);
	TextDrawSetShadow(TDEditor_TD[23], 1);

	TDEditor_TD[24] = TextDrawCreate(4.375000, 3.916665, "update_'12,May,2019'");
	TextDrawLetterSize(TDEditor_TD[24], 0.256874, 1.016665);
	TextDrawAlignment(TDEditor_TD[24], 1);
	TextDrawColor(TDEditor_TD[24], -1);
	TextDrawSetShadow(TDEditor_TD[24], 0);
	TextDrawSetOutline(TDEditor_TD[24], 0);
	TextDrawBackgroundColor(TDEditor_TD[24], 255);
	TextDrawFont(TDEditor_TD[24], 1);
	TextDrawSetProportional(TDEditor_TD[24], 1);
	TextDrawSetShadow(TDEditor_TD[24], 0);

	TDEditor_TD[25] = TextDrawCreate(45.625000, 199.333450, "");
	TextDrawLetterSize(TDEditor_TD[25], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[25], 213.000000, 244.000000);
	TextDrawAlignment(TDEditor_TD[25], 1);
	TextDrawColor(TDEditor_TD[25], -1);
	TextDrawSetShadow(TDEditor_TD[25], 0);
	TextDrawSetOutline(TDEditor_TD[25], 0);
	TextDrawBackgroundColor(TDEditor_TD[25], 0);
	TextDrawFont(TDEditor_TD[25], 5);
	TextDrawSetProportional(TDEditor_TD[25], 0);
	TextDrawSetShadow(TDEditor_TD[25], 0);
	TextDrawSetPreviewModel(TDEditor_TD[25], 412);
	TextDrawSetPreviewRot(TDEditor_TD[25], 0.000000, 0.000000, -49.000000, 1.000000);
	TextDrawSetPreviewVehCol(TDEditor_TD[25], 1, 1);

	TDEditor_TD[26] = TextDrawCreate(363.750000, 198.750106, "");
	TextDrawLetterSize(TDEditor_TD[26], 0.000000, 0.000000);
	TextDrawTextSize(TDEditor_TD[26], 213.000000, 244.000000);
	TextDrawAlignment(TDEditor_TD[26], 1);
	TextDrawColor(TDEditor_TD[26], -1);
	TextDrawSetShadow(TDEditor_TD[26], 0);
	TextDrawSetOutline(TDEditor_TD[26], 0);
	TextDrawBackgroundColor(TDEditor_TD[26], 0);
	TextDrawFont(TDEditor_TD[26], 5);
	TextDrawSetProportional(TDEditor_TD[26], 0);
	TextDrawSetShadow(TDEditor_TD[26], 0);
	TextDrawSetPreviewModel(TDEditor_TD[26], 412);
	TextDrawSetPreviewRot(TDEditor_TD[26], 0.000000, 0.000000, 49.000000, 1.000000);
	TextDrawSetPreviewVehCol(TDEditor_TD[26], 1, 1);
	return 1;
}

public OnPlayerConnect(playerid)
{
	for(new i; i < 27; i++){
		TextDrawShowForPlayer(playerid, TDEditor_TD[i]);
	}
 	SetTimerEx("HideTextDraw", 5000, false, "ii", playerid);
	TogglePlayerSpectating(playerid, true);
	return 1;
}

forward HideTextDraw(playerid);
public HideTextDraw(playerid)
{
	for(new i; i < 27; i++){
		TextDrawHideForPlayer(playerid, TDEditor_TD[i]);
	}
    TogglePlayerSpectating(playerid, false);
    CallLocalFunction("OnPlayerRequestClass", "i", playerid, 0);
     return 1;
}
This should work.
Koreadars is offline   Reply With Quote
Old 12/05/2019, 01:36 PM   #5
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,854
Reputation: 1292
Default Re: TextDraw not showing

Quote:
Originally Posted by jasperschellekens View Post
Exactly what Proxus said, you are creating and hiding them in a function, but you never show them for the player. Use TextDrawShowForPlayer whenever you want the textdraw to show.
These TD's are done completely incorrectly. Every time a player connects they will be created then the variable references lost! Eventually all textdraw slots will fill up.
Pottus is offline   Reply With Quote
Old 12/05/2019, 01:55 PM   #6
PemburuHantu
Big Clucker
 
PemburuHantu's Avatar
 
Join Date: May 2019
Location: Indonesia ( Gorontalo )
Posts: 71
Reputation: 0
Default Re: TextDraw not showing

Quote:
Originally Posted by jasperschellekens View Post
Exactly what Proxus said, you are creating and hiding them in a function, but you never show them for the player. Use TextDrawShowForPlayer whenever you want the textdraw to show.

it works, textdraw appears ... but after logging in / registering ... the server is stuck there ... help me how to fix it

picture :

PemburuHantu is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help textdraw not showing sas10 Scripting Help 2 04/01/2015 09:41 PM
Textdraw not showing Lajko1 Scripting Help 10 25/04/2014 12:56 PM
Textdraw showing under Textdraw boxes. Cena44 Scripting Help 2 20/04/2014 01:43 PM
TextDraw not showing, first time using TextDraw. Jack_Leslie Scripting Help 5 02/09/2011 11:28 AM
Textdraw showing to ID 0 :S stevestelford Help Archive 4 27/11/2009 11:20 AM


All times are GMT. The time now is 10:33 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.