![]() |
GANI scripts in attributes; updating
I'm having trouble with GANI scripts used in player attributes to show an HP bar. It works for the first display, but then doesn't always update.
This is the code (serverside): PHP Code:
PHP Code:
|
I was thinking about how to fix this because i face a similar problem.
i was thinking like a timeout to readd while a onplayerhurt function would remove the attribute setting for the duration than add back afterwords Though im not sure if that could even work. Because i have a smaller project that requires a image to stay up at all times. Hope this gives you a lead onto a fix perhaps. If so give me the method and maybe i can work my own way around my problem :P But of course im talking about how mine works... Good luck to your problem :( |
What I ended up doing is just rotating between two attributes (2 and 3) instead of sticking with one, which lets it always update, but it's still a pain in the ass, and I think there's a way to make it work anyway :(
|
not a bad loophole for this problem. good job. Hopefully someone has an answer to fixing this without having to use 2 attributes.
|
Sadly I've tried to force it to update, even by clearing the attr and setting it again, but to no avail. So I end up having to resort to using another attr to store the data, which sucks.
I've made a bug report on this update problem, but no response... |
Quote:
|
Quote:
|
Quote:
|
Interesting!
btw crow +rep just for your whole signature when I can do it again |
Quote:
|
Quote:
|
Quote:
|
|
Quote:
|
Quote:
http://forums.graalonline.com/forums...66&postcount=5 |
Quote:
Also.. Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
The point now though, is that sleep() shouldn't break the script like you guys are explaining it, if it does. |
| All times are GMT +2. The time now is 04:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.