[Pedido] funзгo strtok para zcmd
#2

pawn Код:
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
 
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Mais algo princesa ?
Reply


Messages In This Thread
funзгo strtok para zcmd - by minimessi10 - 16.08.2013, 00:19
Re: funзгo strtok para zcmd - by darkxdll - 16.08.2013, 00:20
Re: funзгo strtok para zcmd - by Juniiro3 - 16.08.2013, 00:22
Re: funзгo strtok para zcmd - by darkxdll - 16.08.2013, 00:27
Re: funзгo strtok para zcmd - by Juniiro3 - 16.08.2013, 00:30
Re: funзгo strtok para zcmd - by PT - 16.08.2013, 01:10
Re: funзгo strtok para zcmd - by DannielCooper - 16.08.2013, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)