04.02.2015, 20:41
Hello everyone. I was working something about event system and I made saving of all data and some data is saved but the problem is arround float it should saved cordinates which I get from player vehicle in the file but I get in file like 0.0000. Thanks
pawn Код:
GetVehiclePos(GetPlayerVehicleID(playerid),evPos[0],evPos[1],evPos[2]);
format(string,sizeof(string),"CP%dPosX",idcpa);
INI_WriteFloat(File,string,evPos[0]);
format(string,sizeof(string),"CP%dPosY",idcpa);
INI_WriteFloat(File,string,evPos[1]);
format(string,sizeof(string),"CP%dPosZ",idcpa);
INI_WriteFloat(File,string,evPos[2]);