HUD not being displayed
I'm trying to fix this for hours and I still don't get why I'm not seeing a HUD getting displayed. The function that triggers the HUD is called on Ham_Killed but it still persists to not display.
PHP Code:
|
Re: HUD not being displayed
What does GetRemainingTeams() return ?
EDIT: I tested with your exact code, It works, except I hardcoded the GetRemainingTeams( ) return, so check that function. ( Either that, or its not called at all ) |
Re: HUD not being displayed
Quote:
I debugged the code and this is sooo weird, how can #2 be logged first when #1 executes it? CODE: PHP Code:
Quote:
|
Re: HUD not being displayed
It's executed in the right order.
PHP Code:
- You are showing ( GetRemainingTeams( ) - 1 ) to the player but ( GetRemainingTeams( ) + 1 ) to his team ( Im not sure if this is intended, but doesn't seem right ) - Don't use szPlayers[ i ] if you already defined iTempID, or don't use iTempID at all :D - And I would suggest adding some flags to the get_players native, as you don't need a hud message to be shown to bots for example, or even alive players in this case. As for the hud not showing ( if it still isn't ), can we please take a look at the GetRemainingTeams() ? :D |
Re: HUD not being displayed
Quote:
Quote:
Quote:
Quote:
Quote:
As I said, it just returns an integer. PHP Code:
|
Re: HUD not being displayed
You don't need a flag to skip dead, you need a flag to skip alive :D As I can see, you are never going to show this message to an alive player. so go with
Code:
Anyway, I don't really know about the hud not showing, everything is pointing to the GetRemainingTeams halting or returning a non integer value ( Which doesn't seem to be a case here ), however the code above doesn't help us debug because it's even more functions inside one another :D Id suggest going through all of those to look for errors ( Especially if it shows hud sometimes ) Other than that, check for some other hud message overwriting the same channel. |
Re: HUD not being displayed
Quote:
Quote:
EDIT: Client_print works, but not HUDs.. PHP Code:
|
Re: HUD not being displayed
Have you tried debugging to see what gets called or not?
|
Re: HUD not being displayed
Quote:
|
Re: HUD not being displayed
I also tried using DHUD but it's worse, when I remove the plugin that has 2 constant HUDs everything works, but I don't know why that plugin is interfering with this one when each of the HUDs have their own channel. Here's the code for the plugin that has 2 constant HUDs
PHP Code:
|
| All times are GMT -4. The time now is 12:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.