Raised This Month: $ Target: $400
 0% 

Problem with message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kyriuch
Member
Join Date: Jul 2010
Old 08-18-2012 , 14:18   Problem with message
Reply With Quote #1

Code:
public Message(id)
{
        new sName[ 32 ], sSID[ 32 ]
        get_user_name( id, sName, charsmax ( sName ) )
        get_user_authid( id, sSID, charsmax ( sSID ) )
        
        new sLang[ 3 ]
        
        get_user_info( id, "lang", sLang, charsmax ( sLang ) )
        
        if( equali ( sLang, "pl" ) )
        {
                ColorChat( id, GREY, "%L", id, "SMN_APPEARD", PlayerSex( id ) == 1 ? "pojawila" : "pojawil", sName, Enters[ id ] <= 1 ? "dopiero" : "juz", PlayerSex( id ) == 1 ? "jej" : "jego", Enters[ id ], PlayerSex( id ) == 1 ? "Jej" : "Jego", sSID )
        }
        else
        {
                ColorChat( id, GREY, "%L", id, "SMN_APPEARD", sName, PlayerSex( id ) == 1 ? "her" : "his", Enters[ id ], Enters[ id ] > 1 ? ( Enters[ id ] > 2 ? ( Enters[ id ] == 3 ? "rd" : "th" ) : "nd" ) : "st", PlayerSex( id ) == 1 ? "Her" : "His", sSID )
        }
}
Got problem with this code, you see, there are 2 version of message, message in pl languange and in others. Problem is: when I have languange pl, and other player have languange en, I see two messages, about me, and about other player. But message about me is in pl, message about other player is in en. Help me fix that. Players with pl must see pl messages and other player must see only en messages. How do that?
kyriuch is offline
 


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 05:53.


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