Admin Park - No errors - Just doesn't work
#5

Yeah I do.

pawn Код:
LoadVehicles();
pawn Код:
stock LoadVehicles()
{
    new counter = 0;
    for(new i = 0;i<SCRIPT_CARS;i++)
        {
            new file[64];format(file,sizeof file,VEHICLE_PATH,i);
            if(fexist(file))
                {
                    new INI:handler = INI_Open(file);
                    INI_ParseFile(file,"LoadVehicle",.bExtra = true, .extra = i);
                    VehicleInfo[i][vID] = CreateVehicle(VehicleInfo[i][vModel],VehicleInfo[i][vPosX],VehicleInfo[i][vPosY],VehicleInfo[i][vPosZ],VehicleInfo[i][vPosA],VehicleInfo[i][vColor1],VehicleInfo[i][vColor2], 5000);
                    SetVehicleNumberPlate(VehicleInfo[i][vID], VehicleInfo[i][vPlate]);
                    SetVehicleToRespawn(VehicleInfo[i][vID]);
                    INI_Close(handler);
                    counter++;
                   
                }
      }
    printf("%i vehicle(s) loaded.",counter);
}
Reply


Messages In This Thread
Admin Park - No errors - Just doesn't work - by Abreezy - 18.01.2012, 00:01
Re: Admin Park - No errors - Just doesn't work - by xSiiLenTx - 18.01.2012, 00:11
Re: Admin Park - No errors - Just doesn't work - by Abreezy - 18.01.2012, 00:16
Re: Admin Park - No errors - Just doesn't work - by Snowman12 - 18.01.2012, 00:42
Re: Admin Park - No errors - Just doesn't work - by Abreezy - 18.01.2012, 01:26

Forum Jump:


Users browsing this thread: 1 Guest(s)