A nooby question:
I'm using this colorchat stock:
PHP Code:
stock ColorChat( const client, const string[], any:... )
{
new msg[ 191 ], players[ 32 ], count = 1;
static len; len = formatex( msg, charsmax( msg ), "^4[^1 MyClan ^4]^1 " );
vformat( msg[ len ], charsmax( msg ) - len, string, 3 );
if( client ) players[ 0 ] = client;
else get_players( players,count,"ch" );
for ( new i = 0; i < count; i++ )
{
if( is_user_connected( players[ i ] ) )
{
message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] );
write_byte( players[ i ] );
write_string( msg );
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