2 Strings - 1 Message
#1

Okay... I currently have this command;

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;
}
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!
Reply


Messages In This Thread
2 Strings - 1 Message - by Scenario - 02.09.2010, 14:46
Re: 2 Strings - 1 Message - by RoCK'N'Rolla - 02.09.2010, 14:51
Re: 2 Strings - 1 Message - by Scenario - 02.09.2010, 14:52
Re: 2 Strings - 1 Message - by Sergei - 02.09.2010, 14:53
Re: 2 Strings - 1 Message - by RoCK'N'Rolla - 02.09.2010, 14:54
Re: 2 Strings - 1 Message - by mrcoolballs - 02.09.2010, 14:54
Re: 2 Strings - 1 Message - by RoCK'N'Rolla - 02.09.2010, 14:56
Re: 2 Strings - 1 Message - by General Abe - 02.09.2010, 15:15
Re: 2 Strings - 1 Message - by Scenario - 02.09.2010, 15:18
Re: 2 Strings - 1 Message - by Sergei - 02.09.2010, 16:23

Forum Jump:


Users browsing this thread: 2 Guest(s)