[Tutorial] Top x players using sqlite
#10

Why:
Quote:

public OnGameModeInit()
{
top_players = db_open("stats.db");

db_free_result(db_query(top_players,"CREATE TABLE IF NOT EXISTS `Users` (`Name`,`stat`)"));//query the database and free the result
}

not just:
Quote:

db_query(top_players,"CREATE TABLE IF NOT EXISTS `Users` (`Name`,`stat`)");//query the database and free the result

You don't have any DBResult there ... ?
Reply


Messages In This Thread
Top x players using sqlite - by cessil - 24.11.2010, 01:20
Re: Top x players using sqlite - by Jantjuh - 24.11.2010, 05:24
Re: Top x players using sqlite - by Emirt - 24.11.2010, 15:57
Re: Top x players using sqlite - by HyperZ - 24.11.2010, 17:14
Re: Top x players using sqlite - by cessil - 24.11.2010, 23:19
Re: Top x players using sqlite - by Kwarde - 25.11.2010, 04:34
Re: Top x players using sqlite - by Davz*|*Criss - 07.03.2011, 11:10
Re: Top x players using sqlite - by Hal - 07.03.2011, 20:19
Re: Top x players using sqlite - by Mean - 08.03.2011, 17:52
Re: Top x players using sqlite - by Edvin - 21.03.2012, 18:48
Re: Top x players using sqlite - by antonio112 - 22.03.2012, 07:21
Re: Top x players using sqlite - by JaKe Elite - 06.10.2013, 09:43

Forum Jump:


Users browsing this thread: 2 Guest(s)