
|
C:\Documents and Settings\Administrador\Escritorio\Server\DeathMatc h\gamemodes\DeathMatch.pwn(170) : error 017: undefined symbol "strtok" C:\Documents and Settings\Administrador\Escritorio\Server\DeathMatc h\gamemodes\DeathMatch.pwn(170) : error 033: array must be indexed (variable "cmd") C:\Documents and Settings\Administrador\Escritorio\Server\DeathMatc h\gamemodes\DeathMatch.pwn(175) : error 017: undefined symbol "strtok" C:\Documents and Settings\Administrador\Escritorio\Server\DeathMatc h\gamemodes\DeathMatch.pwn(175) : error 033: array must be indexed (variable "tmp") C:\Documents and Settings\Administrador\Escritorio\Server\DeathMatc h\gamemodes\DeathMatch.pwn(169) : warning 203: symbol is never used: "idx" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
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;
}