Thread: player.hearts
View Single Post
  #1  
Old 07-16-2010, 11:28 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
player.hearts

I'm trying to update this serverside- but it won't o-o
I'm using a custom GUI, so I'm using this to heal the player

HTML Code:
public function onHealPlayer(amount) {
  player.hearts += temp.amount;
  triggerclient("weapon", "-Player/HUD", "updateHP", player.hearts);
}
Once it's updated, it'll call the HUD to update. However, on the serverside it shows the HP changing without a problem, but when I go on the clientside it's staying at the old value, not the new one!
Anyone have any reasons why?
I tried it with the default system, but no fix x-x (still updated on the serverside, not the clientside)
__________________
Reply With Quote