Send message from string with \n
#7

Why complication?

Код:
stock SendMessage(playerid,color,msg[])
{
    new idx1,idx2,str[128];
    while(++idx1)
   {
        if(msg[idx1] == '\n') 
       { 
               strmid(string,msg,idx2,idx1);
              SendClientMessage(playerid,color,str);
              idx2 = idx1;
       }
   }
}
#Nero_3D your code won't compile
SendClientMessageToAll doesn't accept playerid argument(its actually color)
Reply


Messages In This Thread
Send message from string with \n - by Banditukas - 15.04.2015, 13:59
Re: Send message from string with \n - by ATGOggy - 15.04.2015, 14:11
Re: Send message from string with \n - by BroZeus - 15.04.2015, 14:29
Re: Send message from string with \n - by ATGOggy - 15.04.2015, 14:31
AW: Re: Send message from string with \n - by Nero_3D - 15.04.2015, 17:22
Re: Send message from string with \n - by Banditukas - 15.04.2015, 18:01
Re: Send message from string with \n - by Yashas - 15.04.2015, 18:34
Re: Send message from string with \n - by Banditukas - 15.04.2015, 18:42
Re: Send message from string with \n - by Azula - 15.04.2015, 18:51

Forum Jump:


Users browsing this thread: 6 Guest(s)