31.07.2013, 04:10
Hello,
I'm trying to make YINI read the vehicle information, the file is already created but it isn't reading the file.
Sorry for my bad english and ignorance.
I'm trying to make YINI read the vehicle information, the file is already created but it isn't reading the file.
PHP код:
for(new i =1; i < MAX_CARS; i++)
{
new file[30];
format(file, sizeof(file), "%d", i);
INI_ParseFile(file, "loadcar_%d", .bExtra = true, .extra = i);
}
forward loadcar_veh(vehicleid, name[], value[]);
public loadcar_veh(vehicleid, name[], value[])
{
INI_String("Owner", VehicleInfo[vehicleid][Owner], 24);
INI_Int("Model", VehicleInfo[vehicleid][Model]);
INI_Float("PosX",VehicleInfo[vehicleid][PosX]);
INI_Float("PosY",VehicleInfo[vehicleid][PosY]);
INI_Float("PosZ", VehicleInfo[vehicleid][PosZ]);
return 1;
}