SA-MP Forums Archive
[Ajuda] error 030: compound statement not closed at the end of file (started at line - 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] error 030: compound statement not closed at the end of file (started at line (/showthread.php?tid=417048)



error 030: compound statement not closed at the end of file (started at line - SonicPaintballer - 19.02.2013

C:\Users\Sonic\Desktop\kengamelada.pwn(247) : error 030: compound statement not closed at the end of file (started at line 226)

linha 226 ateh a 246... (nao existe linha 247)

pawn Код:
new json_info[72];
    new json_value[72];

    format(json_info, 72, "\"%s\":\"", jsonid);

    new i = strfind(json, json_info);

    if(i != -1)
    {
        format(json_value, 56, "%s", json[i+ strlen(json_info)]);

        i = strfind(json_value, "\"");

        if(i != -1) {
            json_value[i] = EOS;
        }
    }

    return json_value;

    //////////////////////////////



Re: error 030: compound statement not closed at the end of file (started at line - Maklister - 19.02.2013

vocк estб retornando

pawn Код:
return json_value;
Creio que isso nгo vai funcionar pseudo dj


Re: error 030: compound statement not closed at the end of file (started at line - MatheusAlcapone - 19.02.2013

Eu nгo entendo sobre isso ai mais uma pergunta porque 3 aspas nessa linha:
i = strfind(json_value, "\"");

??


Re: error 030: compound statement not closed at the end of file (started at line - SonicPaintballer - 19.02.2013

tem alguma ideia de arrumar?


Re: error 030: compound statement not closed at the end of file (started at line - SonicPaintballer - 19.02.2013

a razao das 3 aspas eh porque eu utilizo /" e a " do lado eh pra fechar


Re: error 030: compound statement not closed at the end of file (started at line - MatheusAlcapone - 19.02.2013

aah ok, mais essa funзгo sua esta em uma callback?


Re: error 030: compound statement not closed at the end of file (started at line - SonicPaintballer - 19.02.2013

pawn Код:
jsonGet(json[], jsonid[])
{
    //////////////////////////////

    new json_info[72];
    new json_value[72];

    format(json_info, 72, "\"%s\":\"", jsonid);

    new i = strfind(json, json_info);

    if(i != -1)
    {
        format(json_value, 56, "%s", json[i+ strlen(json_info)]);

        i = strfind(json_value, "\"");

        if(i != -1) {
            json_value[i] = EOS;
        }
    }

    return json_value;

    //////////////////////////////
veja


Re: error 030: compound statement not closed at the end of file (started at line - Lуs - 19.02.2013

Nгo tб faltando a ъltima chave?

pawn Код:
jsonGet(json[], jsonid[])
{
    //////////////////////////////

    new json_info[72];
    new json_value[72];

    format(json_info, 72, "\"%s\":\"", jsonid);

    new i = strfind(json, json_info);

    if(i != -1)
    {
        format(json_value, 56, "%s", json[i+ strlen(json_info)]);

        i = strfind(json_value, "\"");

        if(i != -1) {
            json_value[i] = EOS;
        }
    }

    return json_value;
}



Re: error 030: compound statement not closed at the end of file (started at line - Schocc - 19.02.2013

Esta й a Unica informaзгo de erros, que o pawno lhe exibe?
Poste acima da linha 226, Esse cуdigo й uma funзгo / Callback Stock ??


Re: error 030: compound statement not closed at the end of file (started at line - SonicPaintballer - 19.02.2013

certinho vlw cara

nao nao sschoc o cara ali em cima ja resolveu xDDDD