Format removing decimals
#1

This is probably pretty simple, but I'm unable to figure it out. Saving coordinates to an ini file, this seems to remove the decimal from each float, C1X, C1Y, C1Z.. How would I save it as a float?

Код:
format(var, 64, "C1X=%d\n",C1X[playerid]);fwrite(hFile, var);
format(var, 64, "C1Y=%d\n",C1Y[playerid]);fwrite(hFile, var);
format(var, 64, "C1Z=%d\n",C1Z[playerid]);fwrite(hFile, var);
Reply


Messages In This Thread
Format removing decimals - by -eXo - 18.08.2016, 21:31
Re: Format removing decimals - by Jabern - 18.08.2016, 21:36
Re: Format removing decimals - by -eXo - 18.08.2016, 22:13
Re: Format removing decimals - by WhiteGhost - 18.08.2016, 22:14

Forum Jump:


Users browsing this thread: 1 Guest(s)