plugins/include/dbi.inc
changeset 2571 5c995a647735
parent 2357 f2db4a4d8e1f
child 2767 c1f37afdcbb9
     1.1 --- a/plugins/include/dbi.inc	Sun Feb 08 01:06:31 2009 -0500
     1.2 +++ b/plugins/include/dbi.inc	Sun Feb 08 15:40:48 2009 -0500
     1.3 @@ -150,7 +150,7 @@
     1.4   * Grabs a handle to an SQLite database, creating one if it does not exist.  
     1.5   *
     1.6   * Unless there are extenuating circumstances, you should consider using "sourcemod-local" as the 
     1.7 - * database name.  This gives provides some unification between plugins on behalf of users.
     1.8 + * database name.  This provides some unification between plugins on behalf of users.
     1.9   *
    1.10   * As a precaution, you should always create some sort of unique prefix to your table names so 
    1.11   * there are no conflicts, and you should never drop or modify tables that you do not own.
    1.12 @@ -158,12 +158,11 @@
    1.13   * @param database		Database name.  
    1.14   * @param error			Error buffer.
    1.15   * @param maxlength		Maximum length of the error buffer.
    1.16 - * @param persistent	Persistent or not.
    1.17   * @return				A database connection Handle, or INVALID_HANDLE on failure.
    1.18   * 						On failure the error buffer will be filled with a message.
    1.19   */
    1.20  stock Handle:SQLite_UseDatabase(const String:database[],
    1.21 -								String:buffer[], 
    1.22 +								String:error[], 
    1.23  								maxlength)
    1.24  {
    1.25  	new Handle:kv, Handle:db;
    1.26 @@ -172,7 +171,7 @@
    1.27  	KvSetString(kv, "driver", "sqlite");
    1.28  	KvSetString(kv, "database", database);
    1.29  
    1.30 -	db = SQL_ConnectCustom(kv, buffer, maxlength, false);
    1.31 +	db = SQL_ConnectCustom(kv, error, maxlength, false);
    1.32  
    1.33  	CloseHandle(kv);
    1.34