Scripting Error
#4

Quote:
Originally Posted by Benne
At the last error Try add this: "#pragma unused strtok" at the top.

Or else try this:


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;
}
The first one dosen't works
The second one I dont know where to put it...
Reply


Messages In This Thread
Scripting Error - by Pantontini - 04.11.2009, 15:43
Re: Scripting Error - by Benne - 04.11.2009, 15:45
Re: Scripting Error - by MadeMan - 04.11.2009, 17:50
Re: Scripting Error - by Pantontini - 04.11.2009, 21:10
Re: Scripting Error - by Pantontini - 05.11.2009, 21:52
Re: Scripting Error - by Daren_Jacobson - 06.11.2009, 00:28
Re: Scripting Error - by Pantontini - 07.11.2009, 01:02
Re: Scripting Error - by Daren_Jacobson - 07.11.2009, 02:11
Re: Scripting Error - by Pantontini - 07.11.2009, 16:37
Re: Scripting Error - by MadeMan - 07.11.2009, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)