[Ajuda] Erro ao Compilar - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro ao Compilar (
/showthread.php?tid=401334)
Erro ao Compilar -
Nobiin - 22.12.2012
Код:
C:\Users\marilaine.marilaine-Mega\Desktop\Servers\Lunaticos RP (ORIGINAL)\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\marilaine.marilaine-Mega\Desktop\Servers\Lunaticos RP (ORIGINAL)\gamemodes\(1643) : error 017: undefined symbol "strtok"
C:\Users\marilaine.marilaine-Mega\Desktop\Servers\Lunaticos RP (ORIGINAL)\gamemodes\(1643) : error 033: array must be indexed (variable "tmp")
C:\Users\marilaine.marilaine-Mega\Desktop\Servers\Lunaticos RP (ORIGINAL)\gamemodes\(1643) : error 017: undefined symbol "strtok"
C:\Users\marilaine.marilaine-Mega\Desktop\Servers\Lunaticos RP (ORIGINAL)\gamemodes\(1643) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Linha dos Erros:
pawn Код:
new file[256], tmp[256],tmp2[256], Index; tmp = strtok(params,Index); tmp2 = strtok(params,Index);
Respuesta: Erro ao Compilar -
Pedro Pawno - 22.12.2012
no final do GM:
pawn Код:
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;
}
Re: Erro ao Compilar -
Nobiin - 22.12.2012
sу precisei colocar o include dutils, mas vlw mesmo assim ^^
Agora esta sem erros, mas meu server nao quer conectar, eu abro o sampserver sem problemas, na hora que eu entro ele sу da
Server retryng: ...