Raised This Month: $ Target: $400
 0% 

ShowSyncHudMsg - HudSyncObject -1 is invalid...


Post New Thread Reply   
 
Thread Tools Display Modes
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-19-2007 , 12:17   Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Reply With Quote #11

I have no other custom plugins running when i'm testing my own ones ;)
But like VEN said, i wrote it in plugin_precache and now it works fine

Code:
 public plugin_precache()
{
    g_MsgSync = CreateHudSyncObj();
}

Thank you all for helping me out with this...
Should i wrote a bug report?
Because it is wrong in the documentary at the wiki...
(http://wiki.alliedmods.net/AMX_Mod_X..._Text_Channels)
I just do it

greetz regalis
__________________
regalis is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-19-2007 , 13:53   Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Reply With Quote #12

Quote:
Because it is wrong in the documentary at the wiki...
(http://wiki.alliedmods.net/AMX_Mod_X...ext_Cha nnels)
Not really. For example it returns positive number in plugin_init for me.
VEN is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-19-2007 , 14:15   Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Reply With Quote #13

Hmm...then i must have an error in my code...
But i have no clue where it should be...maybe i find it while i code a little ;)
__________________
regalis is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-19-2007 , 14:25   Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Reply With Quote #14

Just try to compile and run this plugin alone (without any other plugin loaded).
Code:
#include <amxmodx>   public plugin_init() {         // use amx_log or something else if you like         server_print("RetVal:   %d", CreateHudSyncObj()) }
VEN is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-19-2007 , 14:48   Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Reply With Quote #15

Quote:
Originally Posted by VEN View Post
Just try to compile and run this plugin alone (without any other plugin loaded).
Code:
#include <amxmodx> public plugin_init() { // use amx_log or something else if you like server_print("RetVal: %d", CreateHudSyncObj()) }
It gives me
Quote:
RetVal: 8
Hmm, thats weired...i'm looking at my code but it seems alls fine..0o
(As always *lol*)

greetz regalis
__________________
regalis is offline
Reply



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:20.


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