[ajuda]erros - 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]erros (
/showthread.php?tid=142042)
[ajuda]erros -
tshadow - 16.04.2010
Tenho um problema que nгo conciso resolver
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\filterscripts\OOG_CHAT.pwn(218) : error 021: symbol already defined: "strtok"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\filterscripts\OOG_CHAT.pwn(233) : 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.
e aqui estб o filterscrite:
http://pawn.pastebin.com/8Y75FGW2
e se alguem souber incluir os niveis do Ladmin para os chats, ficarei agradecido
Re: [ajuda]erros -
BiGGaMeS - 16.04.2010
Cara, aki num deu nenhum problema, nenhum desses erros!
Mas acredito q o strtok esteja dando erro no seu FS/GM pq voce jah havia definido o strtok antes, ou seja voce tem 2 definiзoes para strtok no seu FS/GM.
Acho q eh isso.
O segundo erro eu naum sei te explicar pois ainda sou novato em pwn.
Espero ter ajudado
Re: [ajuda]erros -
SlashPT - 16.04.2010
no fim tu tens
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;
}
simplesmente apaga
Re: [ajuda]erros -
tshadow - 16.04.2010
Obrigado, mas agora tenho de meter com que sу admins de nivel 1 consigam fazer alguns desses chat's como faзo isso?