? error (
#1

E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(275) : error 017: undefined symbol "strtok"
E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(275) : error 033: array must be indexed (variable "cmd")
E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(289) : error 017: undefined symbol "strtok"
E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(289) : error 033: array must be indexed (variable "tmp")
E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(373) : error 017: undefined symbol "strtok"
E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(373) : error 033: array must be indexed (variable "tmp")
E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(380) : error 017: undefined symbol "strtok"
E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(380) : error 033: array must be indexed (variable "tmp")
E:\GTA\samp03csvr_R2-2_win32\gamemodes\dm123.pwn(273) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply
#2

add
Код:
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;
}
to your script
Reply
#3

You should put your PWN file here
Reply
#4

Thank you very much !
bug fixes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)