AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Few questions about SQLite (https://forums.alliedmods.net/showthread.php?t=62506)

ng1200 10-28-2007 19:33

Few questions about SQLite
 
Hi, I'm moving to SQLite.
So I have a few questions:
1) Will the functions be the same?
2) How do I connect to the database? (Function Wiki says dbi_connect is for MySQL)

Edit:
Nevermind, Here are the answers for both questions:
1) Yes.
2)
Code:
new Sql:db, error[257] db = dbi_connect("localhost","","","dbname",error,256)
And dbname must be a file called dbname.sq3 in the folder addons/amxmodx/data/sqlite3 (you need to make the sqlite3 folder)


All times are GMT -4. The time now is 01:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.