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
Why the heck is my HudSyncObject == -1 ??
I appreciate any help!
Thanks regalis
__________________