24.09.2009, 15:34
Well, i don't see what is so hard here.
It's normal that you'll get this error if you're using "strtok" function but you didn't added it to your script:
Quote:
C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(194) : error 017: undefined symbol "strtok" |
pawn Код:
strtok(const string[], &index, seperator=' ')
{
new length = strlen(string);
new offset = index;
new result[128];
while((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
if((index < length) && (string[index] == seperator))
{
index++;
}
return result;
}