SA-MP Forums Archive
textdraw box dissapears shortly after created - 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 box dissapears shortly after created (/showthread.php?tid=326849)



textdraw box dissapears shortly after created - WardenCS - 18.03.2012

Hello,i did a textdraw box,and when its shown for player,it shows for sec and dissapears

Код:
	Payday0 = TextDrawCreate(326.000000, 133.000000, "__");
	TextDrawAlignment(Payday0, 2);
	TextDrawBackgroundColor(Payday0, 255);
	TextDrawFont(Payday0, 1);
	TextDrawLetterSize(Payday0, 0.500000, 22.000000);
	TextDrawColor(Payday0, 255);
	TextDrawSetOutline(Payday0, 0);
	TextDrawSetProportional(Payday0, 1);
	TextDrawSetShadow(Payday0, 1);
	TextDrawUseBox(Payday0, 1);
	TextDrawBoxColor(Payday0, 255);
	TextDrawTextSize(Payday0, 4.000000, 437.000000);



Re: textdraw box dissapears shortly after created - coole210 - 19.03.2012

I am amazed with your signature.

And for the textdraw thing, you need to make it like this:

pawn Код:
new Payday0[MAX_PLAYERS];
//OnPlayerConnect or whatever:
    Payday0[playerid] = TextDrawCreate(326.000000, 133.000000, "__");
    TextDrawAlignment(Payday0[playerid], 2);
    TextDrawBackgroundColor(Payday0[playerid], 255);
    TextDrawFont(Payday0[playerid], 1);
    TextDrawLetterSize(Payday0[playerid], 0.500000, 22.000000);
    TextDrawColor(Payday0[playerid], 255);
    TextDrawSetOutline(Payday0[playerid], 0);
    TextDrawSetProportional(Payday0[playerid], 1);
    TextDrawSetShadow(Payday0[playerid], 1);
    TextDrawUseBox(Payday0[playerid], 1);
    TextDrawBoxColor(Payday0[playerid], 255);
    TextDrawTextSize(Payday0[playerid], 4.000000, 437.000000);



Re: textdraw box dissapears shortly after created - WardenCS - 19.03.2012

thanks and thanks for helping