SQLite resetting floats
#6

Try this:

pawn Код:
stock SaveFaction(ID)
{
    new Query[600], string[100];
    format(Query, sizeof(Query), "UPDATE `FACTIONS` SET `NAME` = '%s', `INTX` = '%.4f', `INTY` = '%.4f', `INTZ` = '%.4f', `EXTX` = '%.4f', `EXTY` = '%.4f', `EXTZ` = '%.4f', `VW` = '%d', `INT` = '%d', `CREATED` = '%d' WHERE `ID` = %d", FactionInfo[ID][fName], FactionInfo[ID][fHQintX],    FactionInfo[ID][fHQintY], FactionInfo[ID][fHQintZ], FactionInfo[ID][fHQextX], FactionInfo[ID][fHQextY], FactionInfo[ID][fHQextZ], FactionInfo[ID][fHQVW], FactionInfo[ID][fHQint], FactionInfo[ID][fCreated], FactionInfo[ID][fID]);
    db_query(survival, Query);
    print(Query);
    format(string, sizeof(string), "Faction ID %d saved successfully", ID);
    print(string);
    return 1;
}
Reply


Messages In This Thread
SQLite resetting floats - by Mattakil - 06.10.2013, 01:09
Re: SQLite resetting floats - by Emmet_ - 06.10.2013, 01:48
Re: SQLite resetting floats - by Mattakil - 06.10.2013, 02:20
Re: SQLite resetting floats - by DaTa[X] - 06.10.2013, 03:07
Re: SQLite resetting floats - by Mattakil - 06.10.2013, 15:18
Re: SQLite resetting floats - by Emmet_ - 06.10.2013, 15:22
Re: SQLite resetting floats - by Mattakil - 06.10.2013, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)