TextDraw box wont change size
#1

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
Reply
#2

Use spaces in the textdraw bot to make it bigger.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)