Raised This Month: $ Target: $400
 0% 

ShowSyncHudMsg - HudSyncObject -1 is invalid...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-19-2007 , 04:22   ShowSyncHudMsg - HudSyncObject -1 is invalid...
Reply With Quote #1

Hi i got a problem with "ShowSyncHudMsg" and don't see where the mistake is hidden.

Code:
#include <amxmodx>

new g_MsgSync;

public plugin_init()
{
    g_MsgSync = CreateHudSyncObj();
}


public function(id)
{
   set_hudmessage(192, 192, 192, -1.0, 0.45, 2, 0.02, 10.0, 0.01, 0.1, next_hudchannel(id));
   ShowSyncHudMsg(id, g_MsgSync, "blabla HUD-Message");
}
Now if my function is executed it gives me an runtime Error which says this
Quote:
L 04/19/2007 - 10:148: HudSyncObject -1 is invalid
L 04/19/2007 - 10:148: [AMXX] Displaying debug trace (plugin "test.amxx")
L 04/19/2007 - 10:148: [AMXX] Run time error 10: native error (native "ShowSyncHudMsg")
L 04/19/2007 - 10:148: [AMXX] [0] test.sma::function (line 207)
Why the heck is my HudSyncObject == -1 ??

I appreciate any help!
Thanks regalis
__________________

Last edited by regalis; 04-19-2007 at 04:22. Reason: typo
regalis is offline
 


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 06:34.


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