Raised This Month: $32 Target: $400
 8% 

Hud message problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
marquezs
Member
Join Date: Jun 2010
Old 12-25-2010 , 18:32   Hud message problem
Reply With Quote #1

I have a problem in displaying hud message, it happears for one or two, three seconds and then dissapears but I wanted it to show always on screen.

the plugin:

PHP Code:
new synchudmessage

plugin_init
()
{
...
    
synchudmessage CreateHudSyncObj()
}

client_putinserver(id)
{
...
    
set_task(1.0"task_test"id__"b");
}
public 
task_test(id)
{
    
set_hudmessage(142239390.030.9206.02.5);
    
ShowSyncHudMsg(idsynchudmessage"Whateverrrr")

marquezs is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 12-25-2010 , 18:49   Re: Hud message problem
Reply With Quote #2

Quote:
Originally Posted by marquezs View Post
I have a problem in displaying hud message, it happears for one or two, three seconds and then dissapears but I wanted it to show always on screen.

the plugin:

PHP Code:
new synchudmessage

plugin_init
()
{
...
    
synchudmessage CreateHudSyncObj()
}

client_putinserver(id)
{
...
    
set_task(1.0"task_test"id__"b");
}
public 
task_test(id)
{
    
set_hudmessage(142239390.030.9206.02.5);
    
ShowSyncHudMsg(idsynchudmessage"Whateverrrr")

PHP Code:
set_hudmessage(142239390.030.9206.02.5); 
The last param where you set 2.5 as the value is the hold time for the hud message. Now I don't know much about ShowSyncHudMsg, nor do I know what the differences are between show_hudmessage and ShowSyncHudMsg are. You could try to remove the last param.

PHP Code:
set_hudmessage(142239390.030.9206.0); 
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
marquezs
Member
Join Date: Jun 2010
Old 12-25-2010 , 19:05   Re: Hud message problem
Reply With Quote #3

Unfortunately it doesn't work
marquezs is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 12-25-2010 , 19:06   Re: Hud message problem
Reply With Quote #4

Quote:
Originally Posted by marquezs View Post
Unfortunately it doesn't work
PHP Code:
show_hudmessageid"Whateverrrrr" 
Replace ShowSyncHudMessage
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
marquezs
Member
Join Date: Jun 2010
Old 12-25-2010 , 19:40   Re: Hud message problem
Reply With Quote #5

nope does not work
marquezs is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 12-25-2010 , 19:43   Re: Hud message problem
Reply With Quote #6

Quote:
Originally Posted by marquezs View Post
nope does not work
Your shits fucked up then.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
marquezs
Member
Join Date: Jun 2010
Old 12-25-2010 , 20:03   Re: Hud message problem
Reply With Quote #7

Ok, so you tested and it worked for you?
marquezs is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 12-25-2010 , 20:19   Re: Hud message problem
Reply With Quote #8

PHP Code:
#include <amxmodx>
#include <amxmisc>

new const VERSION[] = "1.0";

new 
g_msgSyncHud;

public 
plugin_init()
{
    
register_plugin("Test Some HUD"VERSION"Shuttle_Wave")

    
g_msgSyncHud CreateHudSyncObj();
}

public 
client_putinserver(id)
{
    
set_task(10.0"task_Test"___"b");
}

public 
task_Test(id)
{
    
set_hudmessage(142239390.030.9206.0);  
    
ShowSyncHudMsg(0g_msgSyncHud "Testing");

__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
marquezs
Member
Join Date: Jun 2010
Old 12-26-2010 , 14:13   Re: Hud message problem
Reply With Quote #9

Thanks to all of you, my problem is solved!
marquezs is offline
Reply


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 07:54.


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