What the hell is that ??
#1

Hello !

when someone send a message to main chat the got spamed two times ._. idk why

like this

PHP код:
[5] ]H[LikeMrYassineHii
]H[LikeMrYassineHii
[5] ]H[LikeMrYassine: :O
]H[LikeMrYassine: :
there my code writed on co-json but is simillar as Pawno

PHP код:
OnPlayerText_JSON playertext
{  
    
ReactionText
    
{
        case 
true:
        {
                if(!
strcmp(xCharstextfalse))
                {
                    new
                        
string[128],
                        
pName[MAX_PLAYER_NAME]
                    ;
                    
playerName(IdPlayerpNamesizeof(pName));
                    
messageFormat(stringsizeof(string), "« \%s\" has won the reaction test. »"pName);
                    
sendGlobalMessage(GREENstring);
                    
messageFormat(stringsizeof(string), "« You have earned $%d + %d score points. »"xCashxScore);
                    
sendMessage(IdPlayerGREENstring);
                    
sendMoney(IdPlayerxCash);
                    
SetPlayerScore(IdPlayerplayerScore(IdPlayer) + xScore);
                    
xReactionTimer TimerStart("xReactionTest"TIME1);
                    
xTestBusy false;
                }
        }
    } 
    if(
text[0] == '#' && Info[IdPlayer][indm] == 1)  
    {  
        new 
str[128], name[MAX_PLAYER_NAME];  
        
playerName(IdPlayernamesizeof(name));  
        
messageFormat(strsizeof(str), ""REDx"[DM CHAT] %s: "WHITEx"%s"nametext[1]);  
        for(new 
0MAX_PLAYERSi++)  
        {  
            if(
playerNotConnected(i)) continue;  
            if(
Info[i][indm] == )continue;  
            
sendMessage(i, -1str);  
        }   
    }    
    if(
P_Data[IdPlayer][pMute] == 1
    {
        
sendMessage(IdPlayerCOLOR_RED"You are muted, noone can hear you!");   
    }
    else
    {  
        new 
pname[128];  
        
playerName(IdPlayer,pname,sizeof(pname));  
        new 
stf[128];  
        new 
stringig[128];  
        
messageFormat(stfsizeof(stf), "[%d] %s: "WHITEx"%s"IdPlayerpnametext);  
        
sendGlobalMessage(playerColor(IdPlayer), stf);  
        
messageFormat(stringig,sizeof(stringig),"02[%d] 07%s: %s",IdPlayerpname,text);  
        
IRC_Say(groupIDIRC_ECHOstringig);  
    } 
    
json_print("The Co-JSON Chat Manager LOADED !");
    return (
true);  

There any fix's ?
Reply


Messages In This Thread
What the hell is that ?? - by Yaa - 14.11.2016, 18:51
Re: What the hell is that ?? - by J0sh... - 14.11.2016, 18:54
Re: What the hell is that ?? - by Yaa - 14.11.2016, 18:58
Re: What the hell is that ?? - by J0sh... - 14.11.2016, 19:01
Re: What the hell is that ?? - by Yaa - 14.11.2016, 19:07
Re: What the hell is that ?? - by J0sh... - 14.11.2016, 19:11
Re: What the hell is that ?? - by Yaa - 14.11.2016, 19:17

Forum Jump:


Users browsing this thread: 3 Guest(s)