Need some help here?
#1

Код:
C:\Users\Hellman.Hellmans-PC\Desktop\snusk\gamemodes\P-RP.pwn(10137 -- 10151) : error 001: expected token: ",", but found ";"
pawn Код:
}
    idx = 0;
    while (idx < sizeof(GarageInfo))
    {
        new coordsstring[255];
        format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%f|%f|%f|%d|%d|%s|%s|%d|%d|%d\n",
        GarageInfo[idx][gEntrancex],
        GarageInfo[idx][gEntrancey],
        GarageInfo[idx][gEntrancez],
        GarageInfo[idx][gExitx],
        GarageInfo[idx][gExity],
        GarageInfo[idx][gExitz],
        GarageInfo[idx][EnterAngle],
        GarageInfo[idx][ExitAngle],
        GarageInfo[idx][gOwned],
        strmid(GarageInfo[idx][gOwner],
        GarageInfo[idx][gBuyPrice],
        GarageInfo[idx][ExitInterior],
        GarageInfo[idx][Dynamic],
        GarageInfo[idx][gLock]);
        if(idx == 0)
        {
            file2 = fopen("garage.cfg", io_write);
        }
        else
        {
            file2 = fopen("garage.cfg", io_append);
        }
        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
    }
Reply
#2

Try this?

pawn Код:
}
    idx = 0;
    while (idx < sizeof(GarageInfo))
    {
        new coordsstring[255];
        format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%f|%f|%f|%d|%d|%s|%s|%d|%d|%d\n",
        GarageInfo[idx][gEntrancex],
        GarageInfo[idx][gEntrancey],
        GarageInfo[idx][gEntrancez],
        GarageInfo[idx][gExitx],
        GarageInfo[idx][gExity],
        GarageInfo[idx][gExitz],
        GarageInfo[idx][EnterAngle],
        GarageInfo[idx][ExitAngle],
        GarageInfo[idx][gOwned],
        GarageInfo[idx][gOwner], // The problem was here.
        GarageInfo[idx][gBuyPrice],
        GarageInfo[idx][ExitInterior],
        GarageInfo[idx][Dynamic],
        GarageInfo[idx][gLock]);
        if(idx == 0)
        {
            file2 = fopen("garage.cfg", io_write);
        }
        else
        {
            file2 = fopen("garage.cfg", io_append);
        }
        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
    }
Reply
#3

you have a missing )
in the line starting with strmid
Reply
#4

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)