[AJUDA]Warnings and Errors
#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;
}
Reply


Messages In This Thread
[AJUDA]Warnings and Errors - by hudsonramos10 - 16.03.2010, 18:12
Re: [AJUDA]Warnings and Errors - by SlashPT - 16.03.2010, 18:14
Re: [AJUDA]Warnings and Errors - by hudsonramos10 - 16.03.2010, 18:18
Re: [AJUDA]Warnings and Errors - by SlashPT - 16.03.2010, 18:21
Re: [AJUDA]Warnings and Errors - by hudsonramos10 - 16.03.2010, 18:22
Re: [AJUDA]Warnings and Errors - by SlashPT - 16.03.2010, 18:24
Re: [AJUDA]Warnings and Errors - by hudsonramos10 - 16.03.2010, 18:26
Re: [AJUDA]Warnings and Errors - by SlashPT - 16.03.2010, 18:30
Re: [AJUDA]Warnings and Errors - by hudsonramos10 - 16.03.2010, 18:32
Re: [AJUDA]Warnings and Errors - by SlashPT - 16.03.2010, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)