Raised This Month: $ Target: $400
 0% 

Why are variables not getting filled?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 09-26-2006 , 17:16   Why are variables not getting filled?
Reply With Quote #1

Hi, the variables to show for the set_hudmessage are not filling or something. In game the hud message is showing where the variables should be with all 0's. I put all of this in a prethink and it worked fine but I don't want it there.

Code:
public plugin_init() {     set_task(0.49,"hudHP",0,"",0,"b"); } public hudHP(id) {     new ping, loss;     new health = get_user_health(id);     new armor = get_user_armor(id);     new frags = get_user_frags(id);     new deaths = get_user_deaths(id);     get_user_ping(id, ping, loss);         set_hudmessage(255, 0, 0, -1.3, 1.3, 0, 0.0, 0.5, 0.0, 0.0, 4);     show_hudmessage(id, "Health: %d - Armor: %d ^n Frags: %d - Deaths: %d ^n Ping: %d - Loss: %d", health, armor, frags, deaths, ping, loss);         return PLUGIN_CONTINUE; }
hlstriker is offline
 



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 -4. The time now is 04:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode