Show only first name
#7

pawn Код:
stock split(const strsrc[], strdest[][], delimiter)
{
    GetPlayerName(
    new i, li;
    new aNum;
    new len;
    while(i <= strlen(strsrc))
    {
        if(strsrc[i] == delimiter || i == strlen(strsrc))
        {
            len = strmid(strdest[aNum], strsrc, li, i, 128);
            strdest[aNum][len] = 0;
            li = i+1;
            aNum++;
        }
        i++;
    }
    return 1;
}
Reply


Messages In This Thread
Show only first name - by Harry_Sandhu - 06.07.2011, 12:11
Re: Show only first name - by SwatOwner - 06.07.2011, 12:23
Re: Show only first name - by Harry_Sandhu - 06.07.2011, 12:39
Re: Show only first name - by Calgon - 06.07.2011, 12:59
Re: Show only first name - by CoaPsyFactor - 06.07.2011, 14:43
Re: Show only first name - by Calgon - 06.07.2011, 14:44
Re: Show only first name - by CoaPsyFactor - 06.07.2011, 14:46
AW: Show only first name - by Nero_3D - 06.07.2011, 14:56
Re: Show only first name - by CoaPsyFactor - 06.07.2011, 14:59

Forum Jump:


Users browsing this thread: 3 Guest(s)