15.06.2012, 17:56
(4447) : error 017: undefined symbol "foreach"
(4447) : error 029: invalid expression, assumed zero
(4447) : error 017: undefined symbol "i"
(4447) : fatal error 107: too many error messages on one line
(4447) : error 029: invalid expression, assumed zero
(4447) : error 017: undefined symbol "i"
(4447) : fatal error 107: too many error messages on one line
pawn Код:
case DialogCasas:
{
new string[ 1000 ], CaminhoCasa[ 200 ];
if(response)
{
foreach(new i : Casas) //LINHA 4447
{
format(CaminhoCasa, sizeof(CaminhoCasa), "LHouse/Casas/Casa %d.txt", i);
if(DOF2_FileExists(CaminhoCasa))
{
if(!strcmp(CasaI[i][Dono], "Ninguem", true))
{
new stringf[ 300 ];
format(stringf, sizeof(stringf), "{46FE00}ID: {FFFFFF}%d {000000}| {46FE00}Preзo: {FFFFFF}$%d\n", i, CasaI[i][Preco]);
strins(string, stringf, strlen(string));
}
}
}
ShowPlayerDialog(playerid, DialogCasasVenda, DIALOG_STYLE_LIST, "{00F2FC}Escolha uma casa.", string, "Selecionar", "Cancelar");
SCM(playerid, -1, string);
}