%.1f of inputted value
#2

pawn Код:
new Float:limit;
            if(sscanf(inputtext, "f",limit))
            {
                return ShowPlayerDialog(playerid,DIALOG_VDISTANCE,DIALOG_STYLE_INPUT,"Distance settings","Establish vehicle spawn distance limit {FF0000}ERROR","OK","Back");
            }
            INI_Open("Settings.ini");
            INI_WriteFloat("SpawnDistanceLimit",limit);
            INI_Save();
            INI_Close();
            ServerI[SpawnDistanceLimit]=limit;
The value can be i.e 10.45434259 , but I only want to store 10.4 into the file and the variable, I've done this before but I cant remember how..
Reply


Messages In This Thread
%.1f of inputted value - by EV007 - 25.03.2013, 13:13
Re: %.1f of inputted value - by EV007 - 25.03.2013, 13:44
Re: %.1f of inputted value - by EV007 - 25.03.2013, 13:54
Re: %.1f of inputted value - by Scenario - 25.03.2013, 14:02

Forum Jump:


Users browsing this thread: 1 Guest(s)