Split
#5

pawn Код:
stock split(const string[], string1[], string2[], character, maxsize = strlen(string)+1)
{
    format(string1, maxsize, "%s", string);
    format(string2, maxsize, "%s", string);
    strdel(string1, character+1, strlen(string));
    strdel(string2, 0, character+1);
    return 1;
}
here you go, tested
Reply


Messages In This Thread
Split - by Typhome - 28.10.2010, 19:21
Re: Split - by The_Moddler - 28.10.2010, 19:24
Re: Split - by Typhome - 28.10.2010, 19:49
Re: Split - by randomkid88 - 28.10.2010, 19:54
Re: Split - by i514x - 28.10.2010, 20:06
Re: Split - by Typhome - 28.10.2010, 20:26
Re: Split - by i514x - 28.10.2010, 20:30
Re: Split - by Typhome - 28.10.2010, 20:33
Re: Split - by i514x - 28.10.2010, 20:35
Re: Split - by randomkid88 - 28.10.2010, 20:53

Forum Jump:


Users browsing this thread: 2 Guest(s)