Raised This Month: $ Target: $400
 0% 

showsynchud issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Usama Ali
Member
Join Date: Apr 2020
Old 10-08-2022 , 20:26   Re: showsynchud issue
Reply With Quote #7

Quote:
Originally Posted by lexzor View Post
PHP Code:
#include <amxmodx>

new g_hudsyncobject// this is the variable where we store the handle of created hud sync obj

public plugin_init()
{
    
g_hudsyncobject CreateHudSyncObj() //here we create the hudsyncobject

    
set_task(1.0"show_hud", .flags "b"); //to display your 
}

public 
show_hud()
{
    new 
szMess[192];
    
formatex(szMesscharsmax(szMess), "This is your hud text");
    
set_hudmessage(255,255,255, -1.0, -1.001.01.00.10.1, -1);
    
ShowSyncHudMsg(0g_hudsyncobjectszMess); // here you display your hud text using that object
}

public 
plugin_end()
{
    
ClearSyncHud(0g_hudsyncobject// here you clear the display of hud sync object

above you have an example of how to display a hud message. Related to your issue, you are using ShowSyncHudMsg native BEFORE CreateHudSyncObj. That's why that error persist
hudobject looks okay here have a look.
Attached Files
File Type: sma Get Plugin or Get Source (zombie_escape_v2.3.sma - 46 views - 71.8 KB)
Usama Ali is offline
 



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


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