Ajuda aqui - 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 aqui (
/showthread.php?tid=347202)
Ajuda aqui -
Tiago_Brandao - 31.05.2012
Como resolvo estes erros?
Код:
D:\Vida Roleplay\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3642) : error 021: symbol already defined: "strtok"
D:\Vida Roleplay\Samp 0.3E Server\gamemodes\RPVIDA.pwn(3656) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
}
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;
}
Re: Ajuda aqui -
Lucas_Alemao - 31.05.2012
tenta apagar tudo essa parada ae
Re: Ajuda aqui -
ViictorDaay- - 31.05.2012
Ja existe,apague.