AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   show_hudmessage problem... (https://forums.alliedmods.net/showthread.php?t=60642)

hlstriker 09-09-2007 00:10

show_hudmessage problem...
 
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?

Alka 09-09-2007 04:39

Re: show_hudmessage problem...
 
Use SyncHudMessages...

Code:

CreateHudSyncObj()
ShowSyncHudMsg(...)

:wink: will always display the hud message!

hlstriker 09-09-2007 13:04

Re: show_hudmessage problem...
 
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"); 


Arkshine 09-09-2007 13:12

Re: show_hudmessage problem...
 
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" );     }

hlstriker 09-09-2007 13:28

Re: show_hudmessage problem...
 
Same error :(

Arkshine 09-09-2007 14:11

Re: show_hudmessage problem...
 
Show your full code.

I'm pretty sure that there are another reasons which not related to this snippet code.

Alka 09-09-2007 14:44

Re: show_hudmessage problem...
 
arkshine is right! Show u'r full code ...

hlstriker 09-09-2007 15:00

Re: show_hudmessage problem...
 
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 :)

Alka 09-09-2007 15:24

Re: show_hudmessage problem...
 
Huh >.> ! Glad you make it works :D


All times are GMT -4. The time now is 16:15.

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