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?