Raised This Month: $ Target: $400
 0% 

show_hudmessage problem...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 09-09-2007 , 00:10   show_hudmessage problem...
Reply With Quote #1

I'm getting a really weird problem on counter-strike that I have never gotten on TFC.

I am trying to display a hud message, but it sometimes will not display. I found out if I run fullupdate it will display the message.

Anyone know what's up?
hlstriker is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-09-2007 , 04:39   Re: show_hudmessage problem...
Reply With Quote #2

Use SyncHudMessages...

Code:
CreateHudSyncObj()
ShowSyncHudMsg(...)
will always display the hud message!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 09-09-2007 , 13:04   Re: show_hudmessage problem...
Reply With Quote #3

With that my server will crash and give me this error:
Quote:
FATAL ERROR (shutting down): MESSAGE_END called with no active message
Here is what I used for the hud message.
PHP Code:
set_hudmessage(25500, -1.00.0100.060.00.00.01);
CreateHudSyncObj(1);
ShowSyncHudMsg(id1"Testing hud message"); 
hlstriker is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-09-2007 , 13:12   Re: show_hudmessage problem...
Reply With Quote #4

Code:
    new g_yourVariable;     public plugin_init()     {         g_yourVariable = CreateHudSyncObj();     }     my_function( id )     {         set_hudmessage(255, 0, 0, -1.0, 0.01, 0, 0.0, 60.0, 0.0, 0.0, -1 );         ShowSyncHudMsg( id, g_yourVariable, "Testing hud message" );     }
__________________
Arkshine is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 09-09-2007 , 13:28   Re: show_hudmessage problem...
Reply With Quote #5

Same error
hlstriker is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-09-2007 , 14:11   Re: show_hudmessage problem...
Reply With Quote #6

Show your full code.

I'm pretty sure that there are another reasons which not related to this snippet code.
__________________
Arkshine is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-09-2007 , 14:44   Re: show_hudmessage problem...
Reply With Quote #7

arkshine is right! Show u'r full code ...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 09-09-2007 , 15:00   Re: show_hudmessage problem...
Reply With Quote #8

Oops ><!

I was just about to show the code and saw a stranded message_end() that I forgot to delete, heh.

Sorry about that, and thanks for the help on the hud message. It works perfect now
hlstriker is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-09-2007 , 15:24   Re: show_hudmessage problem...
Reply With Quote #9

Huh >.> ! Glad you make it works
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Reply


Thread Tools
Display Modes

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 16:15.


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