21.11.2013, 12:24
Hello guys,
I'm having a problem with my SQLite database.... all the sudden when i try to open it with my SQLite database browser i get this error "File is not a SQLite 3 Database". This just happened after i added factions and faction ranks to my database... i had a error aswell saying that this line was to long after a submission (the line from the database under OnPlayerDisconnect)
Help please?
I'm having a problem with my SQLite database.... all the sudden when i try to open it with my SQLite database browser i get this error "File is not a SQLite 3 Database". This just happened after i added factions and faction ranks to my database... i had a error aswell saying that this line was to long after a submission (the line from the database under OnPlayerDisconnect)
pawn Код:
//the format line was the error line
new Query[128];
format(Query, sizeof(Query), "UPDATE users SET admin = %d, vip = %d, faction = %d, faction rank = %d, money = %d, rank = %d, exp = %d, kills = %d, deaths = %d WHERE username = '%s'", User[playerid][USER_ADMIN], User[playerid][USER_VIP], User[playerid][USER_FACTION], User[playerid][USER_FACTIONRANK], GetPlayerMoney(playerid), GetPlayerScore(playerid), User[playerid][USER_EXP], User[playerid][USER_KILLS], User[playerid][USER_DEATHS], DB_Escape(User[playerid][USER_NAME]));
db_query(Database, Query);