ShowSyncHudMsg - HudSyncObject -1 is invalid...
Hi i got a problem with "ShowSyncHudMsg" and don't see where the mistake is hidden.
Code:
#include <amxmodx>Quote:
I appreciate any help! Thanks regalis |
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Why don't you just use show_hudmessage?
|
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
I use it right now, but i thought this is new and new things are better ;)
I understand that this way...if a plugin uses a hudchannel and mine would like to use the same(with show_hudmessage) with these new SyncObject it will switch to the next free channel...does i misunderstood something? Thanks for your suggestion ;) greetz regalis |
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
You can still do that with show_hudmessage.
The last parameter of set_hudmessage is the 'channel' one. That can either be 1 of 4 channels or set it to -1 and it will try find you a free channel to display the hud message in |
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Quote:
Ok, then i will shred this f*ck*ng HudSyncObject *gg* Thank you very much! You helped me a lot ;) greetz regalis |
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Quote:
|
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Quote:
Now im confused :P Can you tell me what i have done wrong in my code above? Why is HudSyncObject = -1? :( And what should it be!?..0o Thanks for helping :) regalis PS: If you need more code i'll be back in the evening, now i have to go offline because of reallife shit :( |
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Try replace plugin_init() with plugin_precache() - i'm not saying that this is a solution but i'm trying to find where is the problem.
|
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
I'll try that in the evening...when i'm back home...thanks :)
I'll report if it works or not...if it works the documentary is wrong ;) greetz regalis |
Re: ShowSyncHudMsg - HudSyncObject -1 is invalid...
Some other plugins may have already reserved HudObj's, try disabling some. And add a check in plugin_init() to see if it's -1.
|
| All times are GMT -4. The time now is 06:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.