28.08.2011, 19:46
Hey,
I have a problem i have created an SQLite system for stats saving when i try to open my database via Readsql it gives an error ( An error occurred: File is not a SQLite 3 Database )
Screen:
And its not saving players data
Here's my OnFilterScriptInit:
Please help me thanks.
I have a problem i have created an SQLite system for stats saving when i try to open my database via Readsql it gives an error ( An error occurred: File is not a SQLite 3 Database )
Screen:
And its not saving players data
Here's my OnFilterScriptInit:
pawn Код:
public OnFilterScriptInit()
{
Database = db_open("ServerDatabase.db");
new String[750];
strcat(String, "CREATE TABLE IF NOT EXISTS `USERS` ", 750);
strcat(String, "(\
`NAME`,\
`PASSWORD`,\
`IP`,\
`SCORE`,\
`CASH`,\
`ADMINLEVEL`,\
`KILLS`,\
`DEATHS`,\
`VIPLEVEL`,\
`Hours`,\
`Minutes`,\
`Seconds`,\
`RegisteredDate`\
)", 750);
// strcat(String, "", 750);
db_free_result(db_query(Database, DB_Escape(String)));
return 1;
}