[Help]LoadVehicle
#4

Calm down.
pawn Код:
LoadVehicles()
{
new idx;
while (idx < sizeof(VehicleInfo))
{
    new arrCoords[23][64],strFromFile2[256],idx;
    new File: file = fopen("/Nekretnine/Vozilo_%d.cfg", io_read, idx);

    if (file)
    {
        fread(file, strFromFile2);
        VehicleInfo[idx][vOwned] = strvalEx(arrCoords[0]);
        strmid(VehicleInfo[idx][vOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
        VehicleInfo[idx][vLocationX] = strvalEx(arrCoords[2]);
        VehicleInfo[idx][vLocationY] = strvalEx(arrCoords[3]);
        VehicleInfo[idx][vLocationZ] = strvalEx(arrCoords[4]);
        printf("Vozilo %d je uspjesno ocitano.\n",idx);
        idx++;
        }
        fclose(file);
    }
    return 1;
}
Try that
Reply


Messages In This Thread
[Help]LoadVehicle - by vannesenn - 16.01.2013, 19:51
Re: [Help]LoadVehicle - by vannesenn - 17.01.2013, 08:07
Re: [Help]LoadVehicle - by vannesenn - 18.01.2013, 18:37
Re: [Help]LoadVehicle - by Infinity90 - 18.01.2013, 18:41

Forum Jump:


Users browsing this thread: 2 Guest(s)