What's problem here?
#1

I got some problem and im trying to figure out...

ERRORS:
pawn Код:
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(37315) : error 012: invalid function call, not a valid address
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(37315) : warning 215: expression has no effect
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(37315) : error 001: expected token: ";", but found ")"
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(37315) : error 029: invalid expression, assumed zero
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(37315) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
LINE:
pawn Код:
new string[256]; SetPVarInt(playerid, "bizz", i); xInfo[i][bKupljen] = 1; strmid(xInfo[i][bVlasnik], pName(playerid), 0, strlen(pName(playerid)), 255); GIVE_MONEY_COMMAND(playerid, -bInfo[i][bCijena]); SaveBizz(i);

WHOLE FUCTION:
pawn Код:
}else if(dialogid == bizzkupidialog) {
        if(!response) return SetPVarInt(playerid, "dialog", 0);
        for(new i=0;i<CountBizzs();i++) {
        if(PlayerToPoint(5.0, playerid, xInfo[i][bPosX], xInfo[i][bPosY], xInfo[i][bPosZ])) {
            if(GetPVarInt(playerid, "bizz") != -1) { SendClientMessage(playerid, crvena, "* BIZZ{FFFFFF}: Vec si vlasnik jednog bizza !"); SetPVarInt(playerid, "dialog", 0); return 1; }
            if(xInfo[i][bKupljen] == 1) { SendClientMessage(playerid, crvena, "* BIZZ{FFFFFF}: Ovaj bizz ima vlasnika !"); SetPVarInt(playerid, "dialog", 0); return 1; }
            if(xInfo[i][bCijena] > GetPlayerMoney(playerid)) { SendClientMessage(playerid, crvena, "* BIZZ{FFFFFF}: Nemas dovoljno novaca kako bi kupio ovaj bizz !"); SetPVarInt(playerid, "dialog", 0); return 1; }
            new string[256]; SetPVarInt(playerid, "bizz", i); xInfo[i][bKupljen] = 1; strmid(xInfo[i][bVlasnik], pName(playerid), 0, strlen(pName(playerid)), 255); GIVE_MONEY_COMMAND(playerid, -bInfo[i][bCijena]); SaveBizz(i);
            format(string,sizeof(string),"Cestitamo na vasoj kupovini !\n\n%s\nCijena: %d $\nZarada: %d $\nNovac: %d $",xInfo[i][bIme], xInfo[i][bCijena], xInfo[i][bZarada], xInfo[i][bxNovac]); ShowPlayerDialog(playerid, closedialog, DIALOG_STYLE_MSGBOX, "Cestitamo !", string, "Zatvori", ""); } }

ERRORS:
pawn Код:
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(63705) : warning 213: tag mismatch
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(67196) : error 012: invalid function call, not a valid address
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(67196) : warning 215: expression has no effect
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(67196) : error 001: expected token: ";", but found ")"
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(67196) : error 029: invalid expression, assumed zero
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\Proba so Ibizz\XBRP.pwn(67196) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
LINE:
pawn Код:
if(bInfo[i][bKupljen] == 1 && strcmp(pName(playerid), bInfo[i][bVlasnik], true)==0) { // Pdovjeravamo dali je igrac vlasnik jednog
WHOLE FUCTION:
pawn Код:
stock CheckBizzOwner(playerid) {
    for(new i=0;i<CountBizzs();i++) { // Ucitavamo sve bizzeve jedan po jedan
        if(xInfo[i][bKupljen] == 1 && strcmp(pName(playerid), xInfo[i][bVlasnik], true)==0) { // Pdovjeravamo dali je igrac vlasnik jednog
            SetPVarInt(playerid, "bizz", i); // Ako je vlasnik u variablu "bizz" namjestamo ID bizza kojeg je vlasnik
            #if defined SHOW_BIZZ_STAT // Ukoliko je gore defiran "SHOW_BIZZ_STAT ispisati ce se igracu kratka poruka o bizzu
            new string[128], bizzid = GetPVarInt(playerid, "bizz");
            format(string,sizeof(string),"(( %s{%06x}: Novac: %d$  Zarada: %d$/%dmin ))", xInfo[bizzid][bIme], bizzboja2 >>> 8, xInfo[bizzid][bxNovac], xInfo[bizzid][bZarada], BIZZ_PAY_TIME);
            SendClientMessage(playerid, bizzboja1, string);
            #endif
            return 1; } }
    return 1; }
Reply
#2

When you have a number of statements in the same line, try putting them inside {}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)