[AJUDA] Erro - 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 (
/showthread.php?tid=258222)
[AJUDA] Erro -
Miqueias Barros - 29.05.2011
Preciso de mais uma ajuda pessoal, seguinte estб dando este seguinte erro
Код:
D:\Miqueias\Outras coisas\SAMP\BWP\gamemodes\lvdm.pwn(637) : error 017: undefined symbol "strrest"
D:\Miqueias\Outras coisas\SAMP\BWP\gamemodes\lvdm.pwn(637) : error 033: array must be indexed (variable "gMessage")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Esta й a linha de erro, que no caso o erro й na mesma linha
pawn Код:
gMessage = strrest(cmdtext,idx);
Por favoor !!! ME AJUDEMM....
Re: [AJUDA] Erro -
steki. - 29.05.2011
strcat( gMessage , strrest(cmdtext,idx) );
Re: [AJUDA] Erro -
Dr_Pawno - 29.05.2011
Coloque isto no seu gamemode:
pawn Код:
stock strrest(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Re: [AJUDA] Erro -
Miqueias Barros - 29.05.2011
Prontinho, muito obrigado Dr Pawno, vocк й shoooooooooooow
Manda teu msn ae pela mensagem privada?