25.01.2015, 14:54
be cause you are using a dini-integer function to save it, not a float one:
P.S: recommended to use y_ini in saving functions, dini is too old and slow.
pawn Код:
dini_FloatSet(file, "VehicleHealth", PlayerInfo[playerid][pVehHealth]); // dini_FloatSet instead of dini_IntSet
new Float:vhealth = PlayerInfo[playerid][pVehHealth]; // pVehHealth is a float variable, so vhealth should be too.