29.02.2016, 17:50
Hi. I'm trying to save the damage on faction vehicles but instead of "0000" or "0101" this is what I'm getting on my .ini files:
"Doors0 = 33554432"
This is my code for saving:
I've seen only one other topic with similar problems but they didn't have a solution for it.
Anyone knows what could be going wrong?
"Doors0 = 33554432"
This is my code for saving:
Код:
new panel, door, light, tire; GetVehicleDamageStatus(FactionInfo[i][Veh][veh], panel, door, light, tire); FactionInfo[i][DmgPanel][veh] = panel; FactionInfo[i][DmgDoors][veh] = door; FactionInfo[i][DmgLights][veh] = light; FactionInfo[i][DmgTires][veh] = tire; format(str8, sizeof(str1), "Panels%d", veh); format(str9, sizeof(str1), "Doors%d", veh); format(str10, sizeof(str1), "Lights%d", veh); format(str11, sizeof(str1), "Tires%d", veh); INI_WriteInt(File,str8, FactionInfo[i][DmgPanel][veh]); INI_WriteInt(File,str9, FactionInfo[i][DmgDoors][veh]); INI_WriteInt(File,str10, FactionInfo[i][DmgLights][veh]); INI_WriteInt(File,str11, FactionInfo[i][DmgTires][veh]);
Anyone knows what could be going wrong?