![]() |
Wont update
I am working on a gui sys for a server and got a problem, im using client.ammo, its showing the img correctly and all, but it wont update if i have client.ammo = 1, and change to 10, then i need to update the script for it to change..
So thats what i need help with right now, so it will update, some one? PHP Code:
|
You need to redraw it when the ammo count changes, but I can't help you with that since I don't know the context.
However, a brute force solution can look like this: PHP Code:
|
Quote:
Ideally the gun system or whatever changes that value would send a "trigger" to the GUI system, and update it. This reduces the processor power needed to run the loop 20 times a second hiding and then reshowing all the images. Also, not sure what this is supposed to do: PHP Code:
|
| All times are GMT +2. The time now is 09:37 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.