SQLite ( HELP )
#1

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:
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;
}
Please help me thanks.
Reply


Messages In This Thread
SQLite ( HELP ) - by Linus- - 28.08.2011, 19:46
Re: SQLite ( HELP ) - by Stylock - 28.08.2011, 20:13
Re: SQLite ( HELP ) - by FireCat - 28.08.2011, 20:14
Re: SQLite ( HELP ) - by PrawkC - 28.08.2011, 20:48
Re: SQLite ( HELP ) - by Linus- - 29.08.2011, 04:26
Re: SQLite ( HELP ) - by Bakr - 29.08.2011, 04:35

Forum Jump:


Users browsing this thread: 1 Guest(s)