Raised This Month: $ Target: $400
 0% 

Question about colorchat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pillowCloud
Member
Join Date: Aug 2015
Location: AlliedModders
Old 05-05-2016 , 22:02   Question about colorchat
Reply With Quote #1

A nooby question:

I'm using this colorchat stock:
PHP Code:
stock ColorChat( const client, const string[], any:... )
{
    new 
msg191 ], players32 ], count 1;
    static 
lenlen formatexmsgcharsmaxmsg ), "^4[^1 MyClan ^4]^1 " );
    
vformatmsglen ], charsmaxmsg ) - lenstring);
    
    if( 
client )  players] = client;
    else    
get_playersplayers,count,"ch" );
    
    for ( new 
0counti++ )
    {
        if( 
is_user_connectedplayers] ) )
        {
            
message_beginMSG_ONE_UNRELIABLEget_user_msgid"SayText" ), _players] );
            
write_byteplayers] );
            
write_stringmsg );
            
message_end( );
        }
    }
    return 
PLUGIN_HANDLED;

and when I type something like this:
PHP Code:
ColorChat(0"^4%s blablabla"Example); 
The connection of: ^4%s is making a long space between the prefix and the mentioned variable.

How can I prevent it?

Thanks in advance
pillowCloud 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 18:32.


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