AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud Message won't go away (https://forums.alliedmods.net/showthread.php?t=162457)

Diegorkable 07-19-2011 06:55

Hud Message won't go away
 
I did a show_hudmessage and for some wierd reason it doesn't go away, it stays there for the whole time, what may be the cause for this?

Tirant 07-19-2011 06:56

Re: Hud Message won't go away
 
check your set_hudmessage times. post the code.

Diegorkable 07-19-2011 06:59

Re: Hud Message won't go away
 
PHP Code:

public Started()
{
    if (
didstart == 0)
    {
        
set_task(0.1"writet")
    }
    
    
set_hudmessage(2552552550.060.6206.012.0)
    
show_hudmessage(0"1st HALF Started. Match is now live...")
    
    
set_task(0.1"writet")
    return 
PLUGIN_HANDLED



Tirant 07-19-2011 07:20

Re: Hud Message won't go away
 
look at this... http://www.amxmodx.org/funcwiki.php?...sage&go=search

What I think might be happening is that there is some recursion to "Started". Also, why do you have a 0.1 second delay to "writet"? I think you're going to need to post all of your code. I gotta go to bed, I'll check in the morning.

Diegorkable 07-19-2011 08:14

Re: Hud Message won't go away
 
Nvm, I know what happened, There was a recoursion like you said, fixed.


All times are GMT -4. The time now is 00:48.

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