Raised This Month: $ Target: $400
 0% 

Hud not showing variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
blackops7799
Senior Member
Join Date: May 2006
Old 01-26-2007 , 19:06   Hud not showing variables
Reply With Quote #1

No matter what My hud will display everything as 0 even if i change it.

When I use another part of my mod and say /xp it says that my xp is like 400, but the hud is not showing this.

|Jake's Zombie Mod Server|

Level: 0
Exp: 0
Kills: 0

Code:
public plugin_init() {     register_cvar("zm_hud_pos_x","-1.9")     register_cvar("zm_hud_pos_y","0.55")     register_cvar("zm_hud_red","0")     register_cvar("zm_hud_green","175")     register_cvar("zm_hud_blue","0")     register_plugin("Zombie Mod","1","Jake")     set_task(6.0,"activehud",0,"",0,"b") } public activehud() {     new num, players[32]     get_players(players,num,"ac")     for( new i = 0;  i < num; i++ )     {         show_hudmessage(players[i], "|Jake's Zombie Mod Server| ^n^n Level: %i ^n Exp: %i ^n Kills: %i",level[i],xp[i],kills[i])         set_hudmessage(get_cvar_num("zm_hud_red"),get_cvar_num("zm_hud_green"),get_cvar_num("zm_hud_blue"),get_cvar_float("zm_hudhud_pos_x"),get_cvar_float("zm_hud_pos_y"),0,0.0,99.9,0.0,0.0,-1)     }     return PLUGIN_HANDLED }

Last edited by blackops7799; 01-26-2007 at 19:20.
blackops7799 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 22:23.


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