Raised This Month: $ Target: $400
 0% 

DHUD problem!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 04-29-2012 , 15:24   DHUD problem!
Reply With Quote #1

I tried to make a simple dHud stocks, Here is a partial code:
PHP Code:
Used:
static 
szName32 ]; get_user_nameiKillerszNamecharsmaxszName ) )
__show__dhudmessage_playeriKiller, { 0255}, "Wow^nYou %s"szName )

Stocks:
__show__dhudmessage_playeridszRGB], const szMessage[ ], any:... )
{
    new 
szBuffer128 ], dhud_color
    vformat
szBuffercharsmaxszBuffer ), szMessage)
    
    
dhud_color szRGB] + ( szRGB] << ) + ( szRGB] << 16 )
    
    
message_beginMSG_ONE_UNRELIABLESVC_DIRECTOR, .player=id )
    {
        
write_bytestrlenszBuffer ) + 31 )
        
write_byteDRC_CMD_MESSAGE )
        
write_byte)            // effect
        
write_longdhud_color )    // color
        
write_long_:-1.0 )        // x
        
write_long_:0.55 )    // y
        
write_long_:0.1 )        // fade in
        
write_long_:1.0 )        // fade out
        
write_long_:3.0 )        // holdtime
        
write_long_:6.0 )        // fx time
        
write_stringszBuffer )    // message
    
}
    
message_end()

And the server Crash on Linux OS (os type centos), but on Windows server not crashed! What is the problem ?

Last edited by dFF; 04-29-2012 at 15:24.
dFF is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 04-29-2012 , 15:25   Re: DHUD problem!
Reply With Quote #2

Why don't you use the existing dhudmessage.inc?
__________________
<VeCo> is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 04-29-2012 , 15:26   Re: DHUD problem!
Reply With Quote #3

Because I want to used less functions.
dFF is offline
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 07:53.


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