02.10.2015, 17:07
I dont't know exactly what u want, but do it like this:
PHP код:
SendExplodedMessage(playerid,-1,"Hi|This|is|a|Test");
/*
Send the player:
Hi
This
is
a
Test
*/
stock SendExplodedMessage(playerid,color,const string[])
{
new tmp[128],p=strfind(string,"|"),old=-1;
if(p==-1) return SendClientMessage(playerid,color,string);
for(new i=p; ; i=strfind(string,"|",false,i+1)) {
strmid(tmp,string,old+1,(i==-1)?strlen(string):i,sizeof(tmp)),old=i;
SendClientMessage(playerid,color,tmp);
switch(i) {
case -1: break;
}
}
return 1;
}