06.04.2010, 16:29
pawn Код:
if(!dini_Exists("Logs_And_History/vehicles.ini")){
dini_Create("Logs_And_History/vehicles.ini");}
new loader[128];
for(new i = 0;i<MAX_BUY_CAR;i++)
{
format(loader,sizeof(loader),"veh_model_%d",i);
VehicleSystem[i][model] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_x_%d",i);
VehicleSystem[i][Autox] = dini_Float("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_y_%d",i);
VehicleSystem[i][Autoy] = dini_Float("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_z_%d",i);
VehicleSystem[i][Autoz] = dini_Float("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_Farbe1_%d",i);
VehicleSystem[i][Farbe1] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_Farbe2_%d",i);
VehicleSystem[i][Farbe2] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_a_%d",i);
VehicleSystem[i][a] = dini_Float("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_owner_%d",i);
strmid(VehicleSystem[i][owner],dini_Get("Logs_And_History/vehicles.ini",loader),0,128,128);
format(loader,sizeof(loader),"veh_preis_%d",i);
VehicleSystem[i][preis] = dini_Int("Logs_And_History/vehicles.ini",loader);
//
format(loader,sizeof(loader),"veh_mod1_%d",i);
VehicleSystem[i][mod1] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod2_%d",i);
VehicleSystem[i][mod2] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod3_%d",i);
VehicleSystem[i][mod3] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod4_%d",i);
VehicleSystem[i][mod4] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod5_%d",i);
VehicleSystem[i][mod5] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod6_%d",i);
VehicleSystem[i][mod6] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod7_%d",i);
VehicleSystem[i][mod7] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod8_%d",i);
VehicleSystem[i][mod8] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod9_%d",i);
VehicleSystem[i][mod9] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod10_%d",i);
VehicleSystem[i][mod10] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod11_%d",i);
VehicleSystem[i][mod11] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod12_%d",i);
VehicleSystem[i][mod12] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod13_%d",i);
VehicleSystem[i][mod13] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod14_%d",i);
VehicleSystem[i][mod14] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod15_%d",i);
VehicleSystem[i][mod15] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod16_%d",i);
VehicleSystem[i][mod16] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_mod17_%d",i);
VehicleSystem[i][mod17] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"veh_paint_%d",i);
VehicleSystem[i][paintjob] = dini_Int("Logs_And_History/vehicles.ini",loader);
format(loader,sizeof(loader),"locked_%d",i);
VehicleSystem[i][locked] = dini_Int("Logs_And_History/vehicles.ini",loader);
thanks..