09.03.2011, 08:29
Are you sure the file that your trying to write to exists? Because your only saving to the file there 'if' it exists.
Eg,
Eg,
pawn Код:
if(dini_Exists(file3))
{
dini_IntSet(file3,"Model",CarInfo[idx][cModel]);
dini_FloatSet(file3,"Location_X",CarInfo[idx][cLocationx]);
dini_FloatSet(file3,"Location_Y",CarInfo[idx][cLocationy]);
dini_FloatSet(file3,"Location_Z",CarInfo[idx][cLocationz]);
dini_FloatSet(file3,"Angle",CarInfo[idx][cAngle]);
dini_IntSet(file3,"Color_1",CarInfo[idx][cColorOne]);
}
else//file doesn't exist
{
dini_create(file3);//i dont think this is a dini function (i dont use dini)
//but you should get the idea
dini_IntSet(file3,"Model",CarInfo[idx][cModel]);
//...
}