HUD Display "Not Showing my Values"
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")Code:
public p_infoz(id)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. |
Re: HUD Display "Not Showing my Values"
You can't simply pass id in the function. Use get_players and go through all players and show them each the HUD.
|
Re: HUD Display "Not Showing my Values"
Quote:
Code:
public p_infoz() |
Re: HUD Display "Not Showing my Values"
Put set_hudmessage before the loop begins.
|
Re: HUD Display "Not Showing my Values"
ok thankyou for your help!
|
Re: HUD Display "Not Showing my Values"
Quote:
I join a Team first, it refreshes yeah and the HUD stays up. But as soon as another player spawns, mine disappears but it show for him/her? Help please. |
AW: Re: HUD Display "Not Showing my Values"
Quote:
|
Re: HUD Display "Not Showing my Values"
ok
|
Re: HUD Display "Not Showing my Values"
As far as I can see on my mobile you forgot to set the code inside the loop in brackets.
|
Re: HUD Display "Not Showing my Values"
how do I do that? if it loops won't it keep making another HUD over one that is already made?
|
| All times are GMT -4. The time now is 20:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.