Textdraws at wrong place - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraws at wrong place (
/showthread.php?tid=257038)
Textdraws at wrong place [FIXED] -
NitroSWA - 23.05.2011
Hi,
im scripting for my gamemode but i get stuck at this:
Код:
format(string,sizeof(string),"%d:%2d", Minute, Second);
TextDrawSetString(TimeText,string);
TextDrawFont(TimeText,3);
TextDrawSetOutline(TimeText,1);
TextDrawShowForAll(TimeText);
TextDrawSetString(XpBar[playerid],XPbar);
TextDrawSetOutline(XpBar[playerid],1);
TextDrawFont(XpBar[playerid],3);
TextDrawShowForPlayer(playerid, XpBar[playerid]);
format(string,sizeof(string),"Mapname:%s", Mapname);
TextDrawSetString(MapName,string);
TextDrawFont(MapName,3);
TextDrawSetOutline(MapName,1);
TextDrawShowForAll(MapName);
format(string, sizeof(string), "~r~Alpha Score: %d Bunker: %d ~n~~b~Beta Score: %d Bunker: %d", ScoreA, BaseA, ScoreB, BaseB);
TextDrawSetString(TScore,string);
TextDrawFont(TScore,3);
TextDrawSetOutline(TScore,1);
TextDrawShowForAll(TScore);
this is at a forwarded public that check it every second.
all the textdraws are created at Onplayespawn or Ongamemodeinit.
The TScore appears good.
but the TimeText will always go on a wrong place.
i already checked teh positions but thats alright.
if some1 wants to help me, i can show him whole script and i can start a test server.
If i missed some info, just ask. ill edit my post
Thx & Grz,
Furry
[EDIT] ======================
Already got it fixed.
i had a TextDrawDestroy
on a text, that wasnt created yet... so it destroyed another1. idk why other text came on that position, but its fixed now