mAdmin help
#8

I got new errors

pawn Код:
C:\Users\Korisnik\Desktop\test\filterscripts\mAdmin.pwn(2025) : error 021: symbol already defined: "strtok"
C:\Users\Korisnik\Desktop\test\filterscripts\mAdmin.pwn(2040) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
the code:
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;
}
help pls
Reply


Messages In This Thread
mAdmin help - by KappaCro - 07.08.2011, 02:11
Re: mAdmin help - by Scenario - 07.08.2011, 02:39
Re: mAdmin help - by Kush - 07.08.2011, 02:41
Re: mAdmin help - by KappaCro - 07.08.2011, 02:57
Re: mAdmin help - by Kush - 07.08.2011, 03:09
Re: mAdmin help - by KappaCro - 07.08.2011, 03:14
Re: mAdmin help - by Grim_ - 07.08.2011, 03:19
Re: mAdmin help - by KappaCro - 07.08.2011, 10:12
Re: mAdmin help - by Basicz - 07.08.2011, 10:37
Re: mAdmin help - by KappaCro - 07.08.2011, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)