Raised This Month: $ Target: $400
 0% 

Colorchat Message_begin error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 03-15-2014 , 10:21   Colorchat Message_begin error
Reply With Quote #1

L 03/15/2014 - 14:16:09: [AMXX] Run time error 10: native error (native "message_begin")
L 03/15/2014 - 14:16:09: [AMXX] [0] LRV1.0.sma::ColorChat (line 2061)
L 03/15/2014 - 14:16:09: [AMXX] [1] LRV1.0.sma::Cmd_LastRequest (line 970)

PHP Code:
ColorChatidcolour, const text[], any:... )
{
    if( !
get_playersnum() )
    {
        return;
    }
    
    static 
message[192];
    
    
message[0] = 0x01;
    
vformat(message[1], sizeof(message) - 1text4);
    
    
replace_all(messagesizeof(message) - 1"!g""^x04");
    
replace_all(messagesizeof(message) - 1"!n""^x01");
    
replace_all(messagesizeof(message) - 1"!t""^x03");
    
    static 
indexMSG_Type;
    
    if( !
id )
    {
        static 
i;
        for(
1<= g_iMaxPlayersi++)
        {
            if( 
g_bConnected[i] )
            {
                
index i;
                break;
            }
        }
        
        
MSG_Type MSG_ALL;
    }
    else
    {
        
MSG_Type MSG_ONE;
        
index id;
    }
    
    static 
bool:bChanged;
    if( 
colour == GREY || colour == RED || colour == BLUE )
    {
        
message_begin(MSG_Typeg_msgTeamInfo_index);
        
write_byte(index);
        
write_string(g_szTeamName[colour]);
        
message_end();
        
        
bChanged true;
    }
    
    
message_begin(MSG_Typeg_msgSayText_index);
    
write_byte(index);
    
write_string(message);
    
message_end();
    
    if( 
bChanged )
    {
        
message_begin(MSG_Typeg_msgTeamInfo_index);
        
write_byte(index);
        
write_string(g_szTeamName[_:cs_get_user_team(index)]);
        
message_end();
    }

proffs is offline
 



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 06:00.


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