mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Corrected karma database connect error to more accurately explain the problem.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@45 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -6,7 +6,7 @@ mob/verb/check_karma()
|
||||
var/DBConnection/dbcon = new()
|
||||
dbcon.Connect("dbi:mysql:[SQL_DB]:[SQL_ADDRESS]:[SQL_PORT]","[SQL_LOGIN]","[SQL_PASS]")
|
||||
if(!dbcon.IsConnected())
|
||||
usr << "\red Unable to connect to karma database. This is very bad and you should report it to TLE soon!<br>"
|
||||
usr << "\red Unable to connect to karma database. This error can occur if your host has failed to set up an SQL database or improperly configured its login credentials.<br>"
|
||||
return
|
||||
else
|
||||
var/DBQuery/query = dbcon.NewQuery("SELECT karma FROM karmatotals WHERE byondkey='[src.key]'")
|
||||
|
||||
Reference in New Issue
Block a user