Jump to content

script SeparateLines


ffredyk

Recommended Posts

  • Majitel

Na prani v ICQ.. Neslo mu nacitat stringy ze souboru do dialogu (neradkovalo mu to)

stock SeparateLines(text[])
   {
       new
           tmp,
           temp[258];
       format(temp,258,"%s",text);
       loop:
       if(strfind(temp,";") != -1)
       {
           tmp = strfind(temp, ";");
           strdel(temp,tmp,tmp+1);
           strins(temp,"\n",tmp);
           goto loop;
       }else return temp;
       return temp;
   }

Misto \n staci v souborech psat ";" (bez uvozovek) nacist je do stringu treba "zdialogu" a pak pouzit:

zdialogu = SeparateLines(zdialogu);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...