25.03.2013, 13:13
hey, how could I get only the %.1f of inputted float value? I want to store the value into a file but with %.1f type, because the value can be set by admin up to more numbers after the point.
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;