Question
#4

define strtok
C:\Documents and Settings\Administrator\Mijn documenten\SAMP Server\gamemodes\SWAT.pwn(889) : error 017: undefined symbol "strtok"

add this to ur script:

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
Question - by VonLeeuwen - 13.01.2010, 14:17
Re: Question - by Karlip - 13.01.2010, 14:20
Re: Question - by VonLeeuwen - 13.01.2010, 14:23
Re: Question - by WardenCS - 13.01.2010, 14:28
Re: Question - by VonLeeuwen - 13.01.2010, 14:43
Re: Question - by MaykoX - 13.01.2010, 16:31
Re: Question - by jameskmonger - 13.01.2010, 16:42
Re: Question - by VonLeeuwen - 13.01.2010, 16:44

Forum Jump:


Users browsing this thread: 3 Guest(s)