Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-05-2009, 07:11 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Red face main gui help

Hey guys I have a question. I am making a main gui that displays your hit points and armor and your ammo max. The health part works and the armor part works but im having trouble with it keeping up with clientr.pistol.ammo.

heres what I have:

PHP Code:
showtext2031513"Comic Sans MS""b", (clientr.pistol.ammo ) @ "/" @ ( clientr.pistol.ammo.max ) ); 

It shows the ammo right, but if i fire the weapon ammo and it adds 100 clip to clientr.pistol.ammo, it doesnt update the new ammo status. say I had 500 ammo before I fired the ammo and added 100 ammo. I would have 600ammo but it would still show 500ammo. Someone help [;
Reply With Quote
  #2  
Old 08-05-2009, 07:24 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
You'd have to either update it everytime the ammo stats change or just every 0.05 seconds using a TimeOut.
Reply With Quote
  #3  
Old 08-05-2009, 08:18 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by Pelikano View Post
You'd have to either update it everytime the ammo stats change or just every 0.05 seconds using a TimeOut.
This, or get one weapon or class (I'd say class) that handles all ammo changes, and if ammo changes have it update.



Edit:
Quote:
Originally Posted by REP
Don't repeat information for the hell of getting your name down.
Good job because I had a suggestion.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.

Last edited by Switch; 08-06-2009 at 05:26 AM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.