How to make this code short?
#4

I've try this

pawn Код:
strcat(string, "CREATE TABLE IF NOT EXISTS users ");
    strcat(string, " (userid INTEGER PRIMARY KEY AUTOINCREMENT, username VARCHAR(24) COLLATE NOCASE, ip VARCHAR(16) COLLATE NOCASE, password VARCHAR(129),");
    strcat(string, " score INTEGER DEFAULT 0 NOT NULL, money INTEGER DEFAULT 5000 NOT NULL hours INTEGER DEFAULT 0 NOT NULL, minutes INTEGER DEFAULT 0 NOT NULL, seconds INTEGER DEFAULT 0 NOT NULL,");
    strcat(string, " admin INTEGER DEFAULT 0 NOT NULL, vip INTEGER DEFAULT 0 NOT NULL, speedboost INTEGER DEFAULT 1 NOT NULL, cookies INTEGER DEFAULT 0 NOT NULL,");
    strcat(string, " mb INTEGER DEFAULT 0 NOT NULL)");
    db_query(Database, string);
But didn't work, It always create a empty .db file like what i experience before in my previous topic.
Reply


Messages In This Thread
How to make this code short? - by JaKe Elite - 03.10.2013, 10:17
Re: How to make this code short? - by Konstantinos - 03.10.2013, 10:19
Re: How to make this code short? - by Sublime - 03.10.2013, 10:21
Re: How to make this code short? - by JaKe Elite - 03.10.2013, 10:30
Re: How to make this code short? - by Konstantinos - 03.10.2013, 10:41
Re: How to make this code short? - by JaKe Elite - 03.10.2013, 10:54
Re: How to make this code short? - by xganyx - 03.10.2013, 11:10
Re: How to make this code short? - by Deji - 03.10.2013, 11:56
Re: How to make this code short? - by Konstantinos - 03.10.2013, 11:59
Re: How to make this code short? - by Deji - 03.10.2013, 13:29

Forum Jump:


Users browsing this thread: 4 Guest(s)