Converting a string to an integer [I think]
#5

be cause you are using a dini-integer function to save it, not a float one:
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.
P.S: recommended to use y_ini in saving functions, dini is too old and slow.
Reply


Messages In This Thread
Converting a string to an integer [I think] - by Ciarannn - 22.01.2015, 15:31
Re: Converting a string to an integer [I think] - by Schneider - 22.01.2015, 15:39
Re: Converting a string to an integer [I think] - by Ciarannn - 25.01.2015, 14:45
Re: Converting a string to an integer [I think] - by Ciarannn - 25.01.2015, 14:54
Re: Converting a string to an integer [I think] - by Sawalha - 25.01.2015, 14:54

Forum Jump:


Users browsing this thread: 2 Guest(s)