02.08.2011, 10:34
Код:
public SaveModsForAll(vehicleid) { new formatLD[256]; format(formatLD,sizeof(formatLD),"Sistema/Cars/%d.mods",vehicleid); if(dini_Exists(formatLD)) { dini_IntSet(formatLD,"mod1",TuneCar[vehicleid][mod1]); dini_IntSet(formatLD,"mod2",TuneCar[vehicleid][mod2]); dini_IntSet(formatLD,"mod3",TuneCar[vehicleid][mod3]); dini_IntSet(formatLD,"mod4",TuneCar[vehicleid][mod4]); dini_IntSet(formatLD,"mod5",TuneCar[vehicleid][mod5]); dini_IntSet(formatLD,"mod6",TuneCar[vehicleid][mod6]); dini_IntSet(formatLD,"mod7",TuneCar[vehicleid][mod8]); dini_IntSet(formatLD,"mod9",TuneCar[vehicleid][mod9]); dini_IntSet(formatLD,"mod10",TuneCar[vehicleid][mod10]); dini_IntSet(formatLD,"mod11",TuneCar[vehicleid][mod11]); dini_IntSet(formatLD,"mod12",TuneCar[vehicleid][mod12]); dini_IntSet(formatLD,"mod13",TuneCar[vehicleid][mod13]); dini_IntSet(formatLD,"mod14",TuneCar[vehicleid][mod14]); dini_IntSet(formatLD,"mod15",TuneCar[vehicleid][mod15]); dini_IntSet(formatLD,"mod16",TuneCar[vehicleid][mod16]); dini_IntSet(formatLD,"mod17",TuneCar[vehicleid][mod17]); dini_IntSet(formatLD,"paintjob",TuneCar[vehicleid][paintjob]); dini_IntSet(formatLD,"color1",TuneCar[vehicleid][colorA]); dini_IntSet(formatLD,"color2",TuneCar[vehicleid][colorB]); new Float:health; <--------- Don't Work dini_IntSet(formatLD,"Health", GetVehicleHealth(vehicleid, health)); // <--------- Don't Work } else { dini_Create(formatLD); dini_IntSet(formatLD,"mod1",TuneCar[vehicleid][mod1]); dini_IntSet(formatLD,"mod2",TuneCar[vehicleid][mod2]); dini_IntSet(formatLD,"mod3",TuneCar[vehicleid][mod3]); dini_IntSet(formatLD,"mod4",TuneCar[vehicleid][mod4]); dini_IntSet(formatLD,"mod5",TuneCar[vehicleid][mod5]); dini_IntSet(formatLD,"mod6",TuneCar[vehicleid][mod6]); dini_IntSet(formatLD,"mod7",TuneCar[vehicleid][mod8]); dini_IntSet(formatLD,"mod9",TuneCar[vehicleid][mod9]); dini_IntSet(formatLD,"mod10",TuneCar[vehicleid][mod10]); dini_IntSet(formatLD,"mod11",TuneCar[vehicleid][mod11]); dini_IntSet(formatLD,"mod12",TuneCar[vehicleid][mod12]); dini_IntSet(formatLD,"mod13",TuneCar[vehicleid][mod13]); dini_IntSet(formatLD,"mod14",TuneCar[vehicleid][mod14]); dini_IntSet(formatLD,"mod15",TuneCar[vehicleid][mod15]); dini_IntSet(formatLD,"mod16",TuneCar[vehicleid][mod16]); dini_IntSet(formatLD,"mod17",TuneCar[vehicleid][mod17]); dini_IntSet(formatLD,"paintjob",TuneCar[vehicleid][paintjob]); dini_IntSet(formatLD,"color1",TuneCar[vehicleid][colorA]); dini_IntSet(formatLD,"color2",TuneCar[vehicleid][colorB]); new Float:TuneCar[vehicleid][Health]; <--------- Don't Work dini_IntSet(formatLD,"Health", GetVehicleHealth(vehicleid, TuneCar[vehicleid][Health])); <--------- Don't Work } return 0; }