Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

formatting problem

$
0
0
Code:

CMD:szef(playerid, params[])
{
        new SzefLista[512], SzefString[MAX_SZEF][64];
        format(SzefLista, sizeof(SzefLista), "Széf\tÁllapot\n");
        for(new i; i <MAX_SZEF; i ++)
        {
                if(SzefLP[i] == true) format(SzefString[i], sizeof(32), "Széf %d\tNyitva\n", SzefLP[i]);
                else if(SzefLP[i] == false) format(SzefString[i], sizeof(32), "Széf %d\tZárva\n", SzefLP[i]);
               
                format(SzefLista, sizeof(SzefLista), "%s%s\t%d\n", SzefLista, SzefLP[i], SzefString[i]);
        }
       
        ShowPlayerDialog(playerid, DIALOG_SZEF_FELTOR, DIALOG_STYLE_TABLIST_HEADERS, "Széf feltörés", SzefLista, "Kiválaszt", "Mégsem");

        return 1;
}

Code:

TheInfinity.pwn(38558) : error 020: invalid symbol name ""
TheInfinity.pwn(38558) : error 029: invalid expression, assumed zero
TheInfinity.pwn(38558) : warning 215: expression has no effect
TheInfinity.pwn(38559) : error 029: invalid expression, assumed zero
TheInfinity.pwn(38559) : warning 215: expression has no effect
TheInfinity.pwn(38559) : error 001: expected token: ";", but found "if"
TheInfinity.pwn(38559) : error 020: invalid symbol name ""
TheInfinity.pwn(38559) : fatal error 107: too many error messages on one line


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>