Raised This Month: $ Target: $400
 0% 

HUD Display "Not Showing my Values"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
thebro
Senior Member
Join Date: Jan 2011
Old 12-25-2013 , 02:17   HUD Display "Not Showing my Values"
Reply With Quote #1

Hello, I got the HUD to loop every 2 seconds. It shows up fine but there is one problem.
The "Cash" and "XP" I have it setup to Display, always reads as 0. Regardless of how much of them I have.

In the "public plugin_init()"
I have this to call the HUD.
Code:
set_task(2.0, "p_infoz", _, _, _, "b")
here is the HUD event.
Code:
public p_infoz(id)
{
    set_hudmessage(255, 50, 50, -1.0, 0.50, 0, _, 2.0, _, _, -1)
    ShowSyncHudMsg(id, g_hudmsg8, "[Points] %i     [XP] %i",Cash[id],XP[id])
}
I am not sure why the Values always read Zero, when I have atleast 200 Cash and above 600 XP.
It shows the Values though if I do my "/info" command. But not when it auto updates on screen per 2 Seconds. I basically got the HUD to stay on screen, but it doesn't display the Values.

Please help!

Thankyou.

Last edited by thebro; 12-25-2013 at 02:20.
thebro 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 20:22.


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