02.09.2010, 14:46
Okay... I currently have this command;
And I know that when I go over the string size (128 characters) it will just cut off the rest of what I said. How can I make it if I do go over the alloted string size, it will just send another message like "... [the rest]"? I'm still learning how to use "sscanf" please help!
pawn Код:
command(b, playerid, params[])
{
new Message[128];
if( sscanf( params, "s[128]", Message) )
{
SendClientMessage( playerid, COLOR_WHITE, "SYNTAX: /b [message]" );
}
else
{
format( string, sizeof( string ), "(( %s: %s )) ", GetName( playerid ), Message);
NearByMessage( playerid, COLOR_B, string);
}
return 1;
}