21.03.2015, 16:41
When you /editfaction a list comes up. If you choose floats or integers to change, it seems to either display 0.00000(floats) or a random number around 50(integer) and doesn't want to update the correct input.
pawn Code:
if(ListItem[playerid] == 2)
{
format(GlobalQuery, sizeof(GlobalQuery), "UPDATE `factions` SET `IntX` = %0.2f WHERE `FacID` = %d", inputtext, FID[playerid]);
mysql_function_query(MySQLConnection, GlobalQuery, true, "Query", "");
format(GlobalString, sizeof(GlobalString), "Interior X set.", inputtext);
SendClientMessage(playerid, COLOR_WHITE, GlobalString);
FID[playerid] = 0;
ListItem[playerid] = 0;
}