Splitting messages...
#4

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Which function your using for the Message? SendClientMessage();? Or a Custom one?
It would be for multiple different things, for example IC/OOC chat, PM's, etc... I'll change the function if necessary, I'm just looking for a way to get the splitting done. However, to answer your question, SendClientMessage().


Quote:
Originally Posted by THE_KNOWN
Посмотреть сообщение
i dont know but maybe you could use:

pawn Код:
stock splitstring(actualstring,&split1[],&split2[])
{
    if(sizeof(actualstring) > 100)
    {
        new rlen = sizeof(actualstring) - 100, str[rlen];
        format(split1,100,"%s",actualstring);
        for(new i;i<rlen;i++)
        {
            split2[i]=actualstring[99+i];
        }
    }
    return 1;
}
untested.

split1 string will contain first 100 chars and the split2 string will be fed with chars starting from 100th from actualstring
That will only allow me to send a 200 character message. I'm looking for a way to have it split as many times as it needs to automatically. I've seen systems where the line can split up to 5 times, but what if I send a longer message?
Reply


Messages In This Thread
Splitting messages... - by Scenario - 11.12.2011, 03:46
Re: Splitting messages... - by Ballu Miaa - 11.12.2011, 03:53
Re: Splitting messages... - by THE_KNOWN - 11.12.2011, 03:55
Re: Splitting messages... - by Scenario - 11.12.2011, 03:55
Re: Splitting messages... - by GAMER_PS2 - 11.12.2011, 03:59
Re: Splitting messages... - by Ballu Miaa - 11.12.2011, 04:00
Re: Splitting messages... - by THE_KNOWN - 11.12.2011, 04:01
Re: Splitting messages... - by Scenario - 11.12.2011, 04:04
Re: Splitting messages... - by Scenario - 11.12.2011, 04:06
Re: Splitting messages... - by Ballu Miaa - 11.12.2011, 04:10

Forum Jump:


Users browsing this thread: 2 Guest(s)