Problem saving vehicle damage
#1

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:

Код:
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]);
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?
Reply


Messages In This Thread
Problem saving vehicle damage - by cuzido - 29.02.2016, 17:50
Re: Problem saving vehicle damage - by cuzido - 01.03.2016, 15:40
Re: Problem saving vehicle damage - by smartasspothead - 01.03.2016, 15:50
Re: Problem saving vehicle damage - by cuzido - 01.03.2016, 16:19
Re: Problem saving vehicle damage - by smartasspothead - 02.03.2016, 04:56
Re: Problem saving vehicle damage - by cuzido - 02.03.2016, 15:24
Re: Problem saving vehicle damage - by cuzido - 03.03.2016, 16:27
Re: Problem saving vehicle damage - by cuzido - 05.03.2016, 00:58

Forum Jump:


Users browsing this thread: 1 Guest(s)