Problem with textdraws - 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: Problem with textdraws (
/showthread.php?tid=386764)
Problem with textdraws -
tsonn1 - 21.10.2012
Hell0!
I've got a little problem with my 2 textdraws. The thing is, that 1 of the textdraws spawns into the other one, but it should appear in the other corner.

The location draw appears into the food draw(InfoBar(.
Anyway, here's the code ( gnore the gasdraw, I was too lazy to remove that.

):
pawn Код:
for(new td; td < sizeof(ToiduDraw); td++)
{
InfoBar[td] = TextDrawCreate(498.000000,99.000000, "Food:");
TextDrawBackgroundColor(InfoBar[td],0x00000033);
TextDrawFont(InfoBar[td],1);
TextDrawLetterSize(InfoBar[td],0.400000,1.600000);
TextDrawColor(InfoBar[td],0x008B00A6);
TextDrawSetOutline(InfoBar[td],1);
TextDrawSetProportional(InfoBar[td],1);
TextDrawSetShadow(InfoBar[td],1);
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
FuelDraw[i] = TextDrawCreate(498.000000,114.000000,"Gas:");
TextDrawAlignment(FuelDraw[i],0);
TextDrawBackgroundColor(FuelDraw[i],0x00000033);
TextDrawFont(FuelDraw[i],1);
TextDrawLetterSize(FuelDraw[i],0.400000,1.600000);
TextDrawColor(FuelDraw[i],0x008B00A6);
TextDrawSetOutline(FuelDraw[i],1);
TextDrawSetProportional(FuelDraw[i],1);
TextDrawSetShadow(FuelDraw[i],1);
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
LocationDraw[i] = TextDrawCreate(8.000000,426.000000,"GPS is looking for ur position...");
// TextDrawAlignment(LocationDraw[i],0);
TextDrawBackgroundColor(LocationDraw[i],0x00000033);
TextDrawFont(LocationDraw[i],1);
TextDrawLetterSize(LocationDraw[i],0.400000,1.600000);
TextDrawColor(LocationDraw[i],0x008B00A6);
TextDrawSetOutline(LocationDraw[i],1);
TextDrawSetProportional(LocationDraw[i],1);
TextDrawSetShadow(LocationDraw[i],1);
}
Re: Problem with textdraws -
tsonn1 - 22.10.2012
Anyone?
Re: Problem with textdraws -
XtremeR - 22.10.2012
this happens when the textdraw is been to big, like the limit of the text is 10 but u write 20 instead, it will hide the textdraw or u will be able to see it at a corner..
Re: Problem with textdraws -
dr.lozer - 22.10.2012
Change The X and Y (red color)
Код:
InfoBar[td] = TextDrawCreate(498.000000,99.000000, "Food:");
Re: Problem with textdraws -
tsonn1 - 22.10.2012
Nvm. Got it fixed already.