23.05.2011, 17:58
(
Последний раз редактировалось NitroSWA; 23.05.2011 в 18:54.
)
Hi,
im scripting for my gamemode but i get stuck at this:
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
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);
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