Raised This Month: $51 Target: $400
 12% 

ShowSyncHudMsg not showing 2 messages but only one


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wuu
Member
Join Date: Apr 2008
Old 07-10-2009 , 15:36   ShowSyncHudMsg not showing 2 messages but only one
Reply With Quote #1

Code:
   set_hudmessage(255, 127, 42, -1.0, 0.29, 0, 6.0, 12.0)
            ShowSyncHudMsg(killer, fMsg, "Message 1")
            set_hudmessage(0, 43, 43, -1.0, 0.36, 0, 6.0, 12.0)
            ShowSyncHudMsg(killer, fMsg, "message 2")
Why only message 2 is showing?

I want to messages one at the top in golden color and second little bit lower in dark blue
Wuu is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 07-10-2009 , 15:54   Re: ShowSyncHudMsg not showing 2 messages but only one
Reply With Quote #2

set_hudmessage(255, 127, 42, -1.0, 0.29, 0, 6.0, 12.0)
ShowSyncHudMsg(killer, fMsg, "Message 1")
set_hudmessage(0, 43, 43, -1.0, 0.36, 0, 6.0, 12.0)
ShowSyncHudMsg(killer, fMsg2, "message 2") //you must create one more hud sync object
__________________
Impossible is Nothing

Last edited by Sylwester; 07-10-2009 at 15:57.
Sylwester is offline
Wuu
Member
Join Date: Apr 2008
Old 07-10-2009 , 17:04   Re: ShowSyncHudMsg not showing 2 messages but only one
Reply With Quote #3

Quote:
L 07/11/2009 - 00:03:27: HudSyncObject -1 is invalid
L 07/11/2009 - 00:03:27: [AMXX] Displaying debug trace (plugin "uoc_stats.amxx")
L 07/11/2009 - 00:03:27: [AMXX] Run time error 10: native error (native "ShowSyncHudMsg")
L 07/11/2009 - 00:03:27: [AMXX] [0] uoc_stats.sma::eDeath (line 115)
Wuu is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 07-10-2009 , 17:26   Re: ShowSyncHudMsg not showing 2 messages but only one
Reply With Quote #4

Or an other hud channel? Or is that only for regular hud messages?
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-10-2009 , 19:17   Re: ShowSyncHudMsg not showing 2 messages but only one
Reply With Quote #5

Quote:
Originally Posted by Wuu
L 07/11/2009 - 00:03:27: HudSyncObject -1 is invalid
L 07/11/2009 - 00:03:27: [AMXX] Displaying debug trace (plugin "uoc_stats.amxx")
L 07/11/2009 - 00:03:27: [AMXX] Run time error 10: native error (native "ShowSyncHudMsg")
L 07/11/2009 - 00:03:27: [AMXX] [0] uoc_stats.sma::eDeath (line 115)
That means that the hudsync object variable is not assigned to an object id
Create another sync object ! search where fMsg is assigned (not defined), copy paste it and rename the variable to fMsg2
__________________

Last edited by Hunter-Digital; 07-10-2009 at 19:19.
Hunter-Digital is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-11-2009 , 05:58   Re: ShowSyncHudMsg not showing 2 messages but only one
Reply With Quote #6

PHP Code:
new g_Chan1g_Chan2;
 
public 
plugin_init()
{
        
g_Chan1 CreateHudSyncObj();
        
g_Chan2 CreateHudSyncObj();
}
 
public 
SomeFunc(Killer)
{
        
set_hudmessage(25512742, -1.00.2906.012.0);
        
ShowSyncHudMsg(Killerg_Chan1"Message 1");
 
        
set_hudmessage(04343, -1.00.3606.012.0);
        
ShowSyncHudMsg(Killerg_Chan2"Message 2");

__________________
hleV is offline
Wuu
Member
Join Date: Apr 2008
Old 07-12-2009 , 10:18   Re: ShowSyncHudMsg not showing 2 messages but only one
Reply With Quote #7

hleV + carma
Wuu is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 04-15-2012 , 14:44   Re: ShowSyncHudMsg not showing 2 messages but only one
Reply With Quote #8

Can i use set_dhudmessage?
__________________
dj_freeze is offline
Send a message via Skype™ to dj_freeze
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 12:22.


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