![]() |
HUD Doubles on Death
Hello again, I have been experiencing this issue since the hud script was created, the issue is that when you die, the gui doubles untill you come alive again, quite odd.. Well here's some images of the proof:
Normal: http://img600.imageshack.us/img600/8809/normalb.png Doubled: http://img651.imageshack.us/img651/9826/doublee.png Here's the script: PHP Code:
|
Haven't looked at your code since I can't be bothered to try to decipher poorly formatted code right now, but I'd bet the problem is you're trying to use changeimgpart with a width or height of zero. Hide the HP/MP/whatever bars when they're at zero to fix it.
Please format your code prior to posting it. If nothing else, use this. |
ChangeImgPart does this alot when you use 0.. just hide if less then 1.. or force a minimum of 1.
|
If you specify a 0 width in changeimgpart it uses the entire width. So you can easily fix it like this:
PHP Code:
So in the case above if your calculated width is lower than 1 it'll pick 1 instead. |
Quote:
PHP Code:
PHP Code:
|
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 11:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.