Textdraw show but then disappear? - 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: Textdraw show but then disappear? (
/showthread.php?tid=540574)
Textdraw show but then disappear? -
alanhutch - 05.10.2014
Hi.
I have created a command where it showes a few textdraws...
It's all ok, but when I do the command /wallet, it appears all correctly, but then the Background box disappears...
Can you help me?
Here's the code...
pawn Код:
if(strcmp(cmd, "/wallet", true) == 0)
{
SelectTextDraw(playerid, 0x00C2C2C2);
TextDrawShowForPlayer(playerid, Textdrawportafoglio100);
TextDrawShowForPlayer(playerid, Textdrawportafoglio1);
TextDrawShowForPlayer(playerid, Textdrawportafoglio2);
TextDrawShowForPlayer(playerid, Textdrawportafoglio3);
TextDrawShowForPlayer(playerid, Textdrawportafoglio4);
TextDrawShowForPlayer(playerid, Textdrawportafoglio5);
TextDrawShowForPlayer(playerid, Textdrawportafoglio6);
TextDrawShowForPlayer(playerid, Textdrawportafoglio7);
TextDrawShowForPlayer(playerid, Textdrawportafoglio8);
TextDrawShowForPlayer(playerid, Textdrawportafoglio9);
TextDrawShowForPlayer(playerid, Textdrawportafoglio10);
TextDrawShowForPlayer(playerid, Textdrawportafoglio11);
TextDrawShowForPlayer(playerid, Textdrawportafoglio12);
TextDrawShowForPlayer(playerid, Textdrawportafoglio13);
TextDrawShowForPlayer(playerid, Textdrawportafoglio14);
TextDrawShowForPlayer(playerid, Textdrawportafoglio15);
TextDrawShowForPlayer(playerid, Textdrawportafoglio16);
TextDrawShowForPlayer(playerid, Textdrawportafoglio17);
TextDrawShowForPlayer(playerid, Textdrawportafoglio18);
TextDrawShowForPlayer(playerid, Textdrawportafoglio19);
return 1;
}
And the Textdraw that disappears.
pawn Код:
Textdrawportafoglio100 = TextDrawCreate(498.000000, 104.000000, " ");
TextDrawBackgroundColor(Textdrawportafoglio100, 255);
TextDrawFont(Textdrawportafoglio100, 1);
TextDrawLetterSize(Textdrawportafoglio100, 1.700000, 13.000000);
TextDrawColor(Textdrawportafoglio100, 75);
TextDrawSetOutline(Textdrawportafoglio100, 0);
TextDrawSetProportional(Textdrawportafoglio100, 1);
TextDrawSetShadow(Textdrawportafoglio100, 1);
TextDrawUseBox(Textdrawportafoglio100, 1);
TextDrawBoxColor(Textdrawportafoglio100, 255);
TextDrawTextSize(Textdrawportafoglio100, 630.000000, -110.000000);
TextDrawSetSelectable(Textdrawportafoglio100, 0);
Thank you.