SA-MP Forums Archive
? error ( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ? error ( (/showthread.php?tid=271987)



? error ( - hillko - 26.07.2011

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


Re: ? error ( - Skaizo - 26.07.2011

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


Re: ? error ( - rooney12 - 26.07.2011

You should put your PWN file here


Re: ? error ( - hillko - 26.07.2011

Thank you very much !
bug fixes