[AJUDA] Alguem pode me ajudar nesse erro -
Chis - 15.06.2012
(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
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);
}
Respuesta: [AJUDA] Alguem pode me ajudar nesse erro -
Chis - 15.06.2012
Alguйm?
@Edit, desculpa pelo douple-post, й que estou precisando e jб estou de saida.
Re: [AJUDA] Alguem pode me ajudar nesse erro -
Crueliz0n - 15.06.2012
pawn Код:
case DialogCasas:
{
new string[ 1000 ], CaminhoCasa[ 200 ];
if(response)
{
for(new i; i< MAX_PLAYERS; ++i)
{
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);
}
Re: [AJUDA] Alguem pode me ajudar nesse erro -
Ades - 15.06.2012
Tem
No topo de seu GameMode ?
Re: [AJUDA] Alguem pode me ajudar nesse erro -
Mutuka_XTreme - 15.06.2012
Tem que baixar a include
foreach, e por
#include foreach no gm !