[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=505645)
Erro Ao Compilar -
protork - 09.04.2014
Problemas na hora de compilar com uma filterscript.
trata-se de um sistema de adm. primeiramente queria arruma-lo para
integrar a gm.
Код:
C:\Users\Lucas & yasmin\Downloads\Jadmin.pwn(240) : error 047: array sizes do not match, or destination array is too small
C:\Users\Lucas & yasmin\Downloads\Jadmin.pwn(2262) : error 021: symbol already defined: "strtok"
C:\Users\Lucas & yasmin\Downloads\Jadmin.pwn(2275) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
linha 240
Код:
cmd = strtok(cmdtext, idx);
Demais...
Код:
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
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;
return result;
}
se alguem puder dar alguma luz ai seria muito ъtil