SA-MP Forums Archive
TextDraw box wont change size - 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: TextDraw box wont change size (/showthread.php?tid=123701)



TextDraw box wont change size - jonesy - 26.01.2010

pawn Код:
public Level_Update(playerid)
{
    new string[256];
    new lvl = PlayerInfo[playerid][pLevel];
    new xp = PlayerInfo[playerid][pExp];
    format(string, sizeof(string), "Level %d: %dxp", lvl, xp);
    TextDrawSetString(Textdraw2, string);
    new Float:resize = 505.0 + (xp/20);
    TextDrawTextSize(Textdraw3, resize, 0.000000);
}
ok been having trouble with this code for a bit.. when i gain experience on my server i call this to update my textdraws... only thing is the box size for my progress bar doesnt change at all

ive checked to see if my float value is changing and it does but for some reason it wont change the size of the box and its annoying me now


Re: TextDraw box wont change size - [HiC]TheKiller - 26.01.2010

Use spaces in the textdraw bot to make it bigger.


Re: TextDraw box wont change size - Backwardsman97 - 27.01.2010

Try and hide the textraw and then show it right after and see if that works. I know changing the color sometimes won't update. But I fixed it by hiding it then immediately showing it. It doesn't flash or anything because it's done so fast.