Detaljan opis problema: radim carownership ..uradio sam sve ali nece mi loadovati aute,motre int
Dio skripte:
OVO STAVIM POD ONGAMEMODEINIT
for(new id = 0; id < sizeof(MyVehicle); id++)
{
new vFile;
format(vFile, sizeof(vFile), "OwnerShip/Avtomobili/Vozilo-%d.ini", id);
if(fexist(vFile))
{
INI_ParseFile(vFile, "LoadCarOwnerShip", .bExtra = true, .extra = id);
}
}DRUGI DIO
forward LoadCarOwnerShip(id, name[], value[]);
public LoadCarOwnerShip(id, name[], value[])
{
INI_Int("Slot:",MyVehicle);
INI_Int("Model:",MyVehicle);
INI_Float("PosZ:",MyVehicle);
INI_Float("PosY:",MyVehicle);
INI_Float("PosX",MyVehicle);
INI_Float("Pos3",MyVehicle);
INI_Int("BOJA1",MyVehicle);
INI_Int("BOJA2",MyVehicle);
INI_Int("LOCK",MyVehicle);
INI_String("GAZDA",MyVehicle, 120);
INI_Int("ALARM",MyVehicle);
INI_Int("KOLA",MyVehicle);
INI_Int("MOTOR",MyVehicle);
INI_Int("BROD",MyVehicle);
INI_Int("AVION",MyVehicle);
INI_Int("SPOLER",MyVehicle);
INI_Int("PAINT",MyVehicle);
INI_Int("HOOD",MyVehicle);
INI_Int("Roof",MyVehicle);
INI_Int("Skirt",MyVehicle);
INI_Int("Bandazi",MyVehicle);
INI_Int("PredenBranik",MyVehicle);
INI_Int("ZadenBranik",MyVehicle);
INI_Int("Nitro",MyVehicle);
INI_Int("Auspuh",MyVehicle);
INI_Int("Hidro",MyVehicle);
INI_Int("DesnoKrilo",MyVehicle);
INI_Int("LevoKrilo",MyVehicle);
INI_Int("Registrirano",MyVehicle);
INI_Int("RegistracijaV",MyVehicle);
INI_Float("Kilometri",MyVehicle);
INI_Int("CENA BUY",MyVehicle);
return 1;
}