SA-MP Forums Archive
[Ajuda]array - 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]array (/showthread.php?tid=314113)



[Ajuda]array - 22Jack - 28.01.2012

pawn Код:
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(74) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(110) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(120) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(122) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(132) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(134) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(146) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(158) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(170) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(187) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(189) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(200) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(208) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(210) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(221) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(232) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(272) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(273) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(293) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(305) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(358) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(417) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(456) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(534) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(584) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(597) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(612) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(624) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(639) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(652) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(654) : error 047: array sizes do not match, or destination array is too small
oque й e como consertar? '-'


Re: [Ajuda]array - Abravanel - 28.01.2012

Esse й o erro:

EXEMPLO:

pawn Код:
new msg[ 44 ];
format(msg,sizeof(msg),"Aqui concerteza nгo possui 44 caracteres!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
Se eu aumentar o nъmero da array vai dar sem problemas!
Lembrando: O mбximo que o chat aguenta й 128 caracteres!

@@ Como resolver

Procure no seu GM todos os formats e aumente o tamanho das arrays dos mesmos..


Re: [Ajuda]array - 22Jack - 28.01.2012

aumentei o tamanho de todas porйm continua com erros
pawn Код:
@edit (consertei um erro resta 2)
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(110) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(120) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(132) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(187) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(208) : warning 217: loose indentation
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(1114) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Gabriel\Desktop\TC\filterscripts\sbadmin.pwn(1129) : error 047: array sizes do not match, or destination array is too small
o erro da linha 1129 й esse

pawn Код:
new offset = index;
    new result[20]; //array dele jб aumentei
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;   //erro
}



Re: [Ajuda]array - Abravanel - 28.01.2012

Posta as linhas:
273 e 1129


Re: [Ajuda]array - paulor - 28.01.2012

loose indentation й TAB use isto vai ajudar muito!
http://dracoblue.net/tidy/pawn/


Re: [Ajuda]array - 22Jack - 28.01.2012

linha 273 mesmo?

@paulor valeu tirou os warnings

@topic ajuda ae... continua apenas com dois erros


Re: [Ajuda]array - paulor - 28.01.2012

1114 - apague o strtock pois ja esta definido
1129 - aumente o tamnho da definiзao ex: string[64]; para string[128];


Re: [Ajuda]array - 22Jack - 28.01.2012

Funciono e era um negocio tгo simples '--'


Re: [Ajuda]array - paulor - 28.01.2012

Pois eh