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

Chat bug HELP!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
remix.allstarz
Member
Join Date: Dec 2013
Old 07-24-2019 , 16:29   Chat bug HELP!!!
Reply With Quote #1

Hey guys sry for my english but i need help

When i say anything in chat it come: s1 : s2 i cant type anything why??
in sma


else{
add(szTmp2, charsmax(szTmp2), szPrefix);
add(szTmp2, charsmax(szTmp2), "^x03 %s1^x01 : %s2");
}
remix.allstarz is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-24-2019 , 16:35   Re: Chat bug HELP!!!
Reply With Quote #2

1. Learn your native language. Google can still translate to English (and vice versa) decently.
2. Post full script.
3. Add it on [php] or [small] tag, so it's human-understandable.
thEsp is offline
remix.allstarz
Member
Join Date: Dec 2013
Old 07-24-2019 , 16:48   Re: Chat bug HELP!!!
Reply With Quote #3

sry i mean

if I write something in the chat comes s1: s2

i upload SMA
Attached Files
File Type: sma Get Plugin or Get Source (skillpoints.sma - 60 views - 32.3 KB)
remix.allstarz is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 07-24-2019 , 22:42   Re: Chat bug HELP!!!
Reply With Quote #4

Its basically because of this part after valve updated the cs version in 2018.

PHP Code:
public MessageSayTextiMsgIDiDestiReceiver )
{
    if( 
get_pcvar_numg_iHideChangeNickNotification ) )
    {    
        new const 
Cstrike_Name_Change[ ] = "#Cstrike_Name_Change"
        
        
new szMessagesizeofCstrike_Name_Change ) + ]
        
get_msg_arg_string2szMessagecharsmaxszMessage ) )
        
        if( 
equalszMessageCstrike_Name_Change ) )
        {
            return 
PLUGIN_HANDLED
        
}
    }
    
    return 
PLUGIN_CONTINUE
}
public 
handleSayText(msgIdmsgDestmsgEnt){
    new 
id get_msg_arg_int(1);
    
    if(
is_user_connected(id)){
        new 
szTmp[190],
            
szTmp2[190];
            
        
get_msg_arg_string(2szTmpcharsmax(szTmp));
        
        new 
szPrefix[64]; 
        new 
Style;
        
Style get_pcvar_numCvarStyle );
        
//formatex(szPrefix,charsmax( szPrefix ),"^x04[%s]{%.2f}", CLASSES[ g_iLevels[ id ]], 1.0*g_iKills[ id ]/g_iDeaths[ id ]);
        
        
switch(Style) {
                case 
1formatex(szPrefix,charsmaxszPrefix ),"");
                case 
2formatex(szPrefix,charsmaxszPrefix ),"^x04[%s]"CLASSESg_iLevelsid ]]);
                case 
3formatex(szPrefix,charsmaxszPrefix ),"^x04[%s]{%.2f}"CLASSESg_iLevelsid ]], 1.0*g_iKillsid ]/g_iDeathsid ]);
                case 
4formatex(szPrefix,charsmaxszPrefix ),"^x04{%.2f}"1.0*g_iKillsid ]/g_iDeathsid ]);
            }
        
        if(!
equal(szTmp"#Cstrike_Chat_All")){
            
add(szTmp2charsmax(szTmp2), szPrefix);
            
add(szTmp2charsmax(szTmp2), " ");
            
add(szTmp2charsmax(szTmp2), szTmp);
        }
        else{
            
add(szTmp2charsmax(szTmp2), szPrefix);
            
add(szTmp2charsmax(szTmp2), "^x03 %s2^x01 :  %s1");
        }
        
set_msg_arg_string(2szTmp2);
    }
    return 
PLUGIN_CONTINUE;

You use this plugin on a nonsteam server where either you or anybody else is using Steam while others do not and a steam user can see their messages and names as s1: s2.
__________________

Last edited by SomewhereLost; 07-24-2019 at 23:27.
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
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 05:07.


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