MySQL Error
#5

pawn Код:
public LoadRefundCars()
{
    new arrCoords[42][64];
    new strFromFile2[256];
    new File: file = fopen("cars2.cfg", io_read);
    if (file)
    {
        new idx;
        while (idx < sizeof(RefundcInfo))
        {
            fread(file, strFromFile2);
            split(strFromFile2, arrCoords, ',');
            RefundcInfo[idx][rcModel] = strval(arrCoords[0]);
            RefundcInfo[idx][rcLocationx] = floatstr(arrCoords[1]);
            RefundcInfo[idx][rcLocationy] = floatstr(arrCoords[2]);
            RefundcInfo[idx][rcLocationz] = floatstr(arrCoords[3]);
            RefundcInfo[idx][rcAngle] = floatstr(arrCoords[4]);
            RefundcInfo[idx][rcColorOne] = strval(arrCoords[5]);
            RefundcInfo[idx][rcColorTwo] = strval(arrCoords[6]);
            strmid(RefundcInfo[idx][rcOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255);
            strmid(RefundcInfo[idx][rcDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255);
            RefundcInfo[idx][rcValue] = strval(arrCoords[9]);
            RefundcInfo[idx][rcLicense] = strval(arrCoords[10]);
            RefundcInfo[idx][rcOwned] = strval(arrCoords[11]);
            RefundcInfo[idx][rcLock] = strval(arrCoords[12]);
            RefundcInfo[idx][rcMod][0] = strval(arrCoords[13]);
            RefundcInfo[idx][rcMod][1] = strval(arrCoords[14]);
            RefundcInfo[idx][rcMod][2] = strval(arrCoords[15]);
            RefundcInfo[idx][rcMod][3] = strval(arrCoords[16]);
            RefundcInfo[idx][rcMod][4] = strval(arrCoords[17]);
            RefundcInfo[idx][rcMod][5] = strval(arrCoords[18]);
            RefundcInfo[idx][rcMod][6] = strval(arrCoords[19]);
            RefundcInfo[idx][rcMod][7] = strval(arrCoords[20]);
            RefundcInfo[idx][rcMod][8] = strval(arrCoords[21]);
            RefundcInfo[idx][rcMod][9] = strval(arrCoords[22]);
            RefundcInfo[idx][rcDonate] = strval(arrCoords[23]);
            RefundcInfo[idx][rcFuel] = strval(arrCoords[24]);
            RefundcInfo[idx][rcTrunkWep][1] = strval(arrCoords[25]);
            RefundcInfo[idx][rcTrunkAmmo][1] = strval(arrCoords[26]);
            RefundcInfo[idx][rcTrunkWep][2] = strval(arrCoords[27]);
            RefundcInfo[idx][rcTrunkAmmo][2] = strval(arrCoords[28]);
            RefundcInfo[idx][rcTrunkWep][3] = strval(arrCoords[29]);
            RefundcInfo[idx][rcTrunkAmmo][3] = strval(arrCoords[30]);
            RefundcInfo[idx][rcTrunkWep][4] = strval(arrCoords[31]);
            RefundcInfo[idx][rcTrunkAmmo][4] = strval(arrCoords[32]);
            RefundcInfo[idx][rcTrunkArmour] = floatstr(arrCoords[33]);
            RefundcInfo[idx][rcTrunkCounter] = strval(arrCoords[34]);
            RefundcInfo[idx][rcAlarm] = strval(arrCoords[35]);
            RefundcInfo[idx][rcTrunkDrugs] = strval(arrCoords[36]);
            RefundcInfo[idx][rcTrunkMats] = strval(arrCoords[37]);
            RefundcInfo[idx][rcImpounded] = strval(arrCoords[38]);
            RefundcInfo[idx][rcImpoundedPrice] = strval(arrCoords[39]);
            RefundcInfo[idx][rcInsur] = strval(arrCoords[40]);
            RefundcInfo[idx][rcHealth] = floatstr(arrCoords[41]);
            idx++;
        }
    }
    fclose(file);
    return 1;
}
Reply


Messages In This Thread
MySQL Error - by Tingesport - 14.11.2013, 08:46
Re: MySQL Error - by Konstantinos - 14.11.2013, 09:40
Re: MySQL Error - by Tingesport - 14.11.2013, 09:52
Re: MySQL Error - by Konstantinos - 14.11.2013, 09:54
Re: MySQL Error - by Tingesport - 14.11.2013, 09:58
Re: MySQL Error - by Konstantinos - 14.11.2013, 10:10
Re: MySQL Error - by Tingesport - 14.11.2013, 10:17
Re: MySQL Error - by Konstantinos - 14.11.2013, 10:44
Re: MySQL Error - by Tingesport - 14.11.2013, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)