Skip to content

Commit

Permalink
basic sql changes, default turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
GlorifiedPig committed Feb 3, 2018
1 parent f7e50ef commit f62057c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lua/glorifiedbanking/module/sv_sql.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ function AddPlayerGBD( id )
local query = GBANKINGDB:query( "INSERT INTO users VALUES('', '" .. id .. "');" )

query.onSuccess = function()
print( "[GlorifiedBanking] New player added to SQL database." )
print( "[GlorifiedBanking] New player added to SQL database. ID " .. id )
end
query.onError = function()
print( "[GlorifiedBanking] Error adding new player to SQL database!" )
query.onError = function( db, error )
print( "[GlorifiedBanking] Error adding new player to SQL database! Error: " .. error )
end

query:start()
Expand Down
2 changes: 1 addition & 1 deletion lua/glorifiedbanking/sh_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ glorifiedBanking.config.ADMIN_USERGROUPS = {
}

-- MYSQL CONFIGURATION --
glorifiedBanking.config.MYSQL_ENABLE = true -- Whether or not to enable MySQL. Please be sure you have the libmysql.dll and MySQLOO installed.
glorifiedBanking.config.MYSQL_ENABLE = false -- Whether or not to enable MySQL. Please be sure you have the libmysql.dll and MySQLOO installed.

glorifiedBanking.config.MYSQL_DATABASE_HOST = "127.0.0.1"
glorifiedBanking.config.MYSQL_DATABASE_USERNAME = "root"
Expand Down

0 comments on commit f62057c

Please sign in to comment.