PROBLEM|STRTOK
#1

I have a problem :/
Im compiled and have this error:
Код:
C:\Documents and Settings\Antonio\Desktop\SERVER\gamemodes\GM0.0.pwn(154) : warning 203: symbol is never used: "strtok"
I dont have a line 154 :S
Reply
#2

Check if you created a "new strtok;" or something else, usually the strtok's stock doesn't do this error even if it's not used in the GameMode.
Reply
#3

LRN2READ? It says: warning. That's not an error. Use sscanf, and maybe your code isn't needing strtok.
Reply
#4

Add:
pawn Код:
#pragma unused strtok
at TOP of your code. This will ignore the warning. It might be included in any of your include, thats why it shows Line 154. (Your script is 153 Lines long then).
Reply
#5

i have 4 errors.please help

C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(41) : error 017: undefined symbol "strtok"
C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(41) : error 033: array must be indexed (variable "tmp")
C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(5 : error 017: undefined symbol "strtok"
C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(5 : error 033: array must be indexed (variable "tmp")
C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(36) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

Quote:
Originally Posted by [USAK]Icey
Посмотреть сообщение
i have 4 errors.please help

C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(41) : error 017: undefined symbol "strtok"
C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(41) : error 033: array must be indexed (variable "tmp")
C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(5 : error 017: undefined symbol "strtok"
C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(5 : error 033: array must be indexed (variable "tmp")
C:\Users\Thomas\Desktop\samp 0.3b server3\filterscripts\vipsytem.pwn(36) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
@topic: I'd suggest as same as victi


You should not put a question off-topic. Always, put that:
pawn Код:
stock 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


Forum Jump:


Users browsing this thread: 1 Guest(s)