textdraw bug - 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 bug (
/showthread.php?tid=590986)
textdraw bug -
Karolukas123 - 06.10.2015
Hey, need some help. why not showing textdraw..
Код:
new Text:Darbo_TD[MAX_PLAYERS][15];
for(new p = 0; p < MAX_PLAYERS; p++)
{
Darbo_TD[p][0] = TextDrawCreate(183.000000, 137.500000, "box");
TextDrawLetterSize(Darbo_TD[p][0], 0.000000, 17.000003);
TextDrawTextSize(Darbo_TD[p][0], 498.000000, 0.000000);
TextDrawAlignment(Darbo_TD[p][0], 1);
TextDrawColor(Darbo_TD[p][0], 404166657);
TextDrawUseBox(Darbo_TD[p][0], 1);
TextDrawBoxColor(Darbo_TD[p][0], 404166911);
TextDrawSetShadow(Darbo_TD[p][0], 0);
TextDrawSetOutline(Darbo_TD[p][0], 0);
TextDrawBackgroundColor(Darbo_TD[p][0], 404166657);
TextDrawFont(Darbo_TD[p][0], 1);
TextDrawSetProportional(Darbo_TD[p][0], 1);
TextDrawSetShadow(Darbo_TD[p][0], 0);
}
CMD:darbas(playerid)
{
SelectTextDraw(playerid, 0xFFFFFFFF);
for(new s = 0; s < 15; s++) TextDrawShowForPlayer(playerid, Darbo_TD[playerid][s]);
return 1;
Re: textdraw bug -
Fantje - 06.10.2015
for(new s = 0; s < 15; s++) || TextDrawShowForPlayer(playerid, Darbo_TD[playerid][s]);
Maybe?
Re: textdraw bug -
Karolukas123 - 06.10.2015
No..
Re: textdraw bug -
AbyssMorgan - 06.10.2015
alpha 0x01 ?
color 0x18171801
Re: textdraw bug -
PrO.GameR - 06.10.2015
A) You should probably create and show textdraw before using selecttextdraw, try changin their places, it MIGHT help
B) Why the h.. are you making global textdraws for player scales ? try using this type of textdraw if you want playerid bound textdraws
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Re: textdraw bug -
Karolukas123 - 06.10.2015
bug is not in here.. i dont know but all textdraw dont work..