10.05.2011, 17:18
Eu fui compilar o FS de admin do jim carrey, quando eu compilei apareceu os seguintes erros
Alguem me ajuda, olha as linhas abaixo.
Agradeзo desde jб
pawn Код:
C:\Documents and Settings\...\filterscripts\Jadmin.pwn(240) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\...\filterscripts\Jadmin.pwn(2261) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\...\filterscripts\Jadmin.pwn(2274) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
pawn Код:
(240) cmd = strtok(cmdtext, idx);
strtok(const string[], &index)
(2261){
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
ndex++;
}
new offset = index,result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
(2274) return result;
}