27.09.2013, 19:19
Hello, i just want to save one value into db with SQLite, but i dont know how to write the save command. Its reading them fine, if that makes a difference. :S
This is what i tried.
This is what i tried.
Код:
stock SaveFactoryDB() { new query[512]; format(query, sizeof(query), "UPDATE `Factory` SET `fMineral` = '%s', WHERE `ffid` = '1'", FactoryInfo[1][fMineral]); db_query(FactoryDB, query); return 0; }