mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Chompedit tags
This commit is contained in:
@@ -85,8 +85,8 @@ SUBSYSTEM_DEF(persist)
|
|||||||
var/sql_bal = text2num("[C.department_hours[department_earning]]")
|
var/sql_bal = text2num("[C.department_hours[department_earning]]")
|
||||||
var/sql_total = text2num("[C.play_hours[department_earning]]")
|
var/sql_total = text2num("[C.play_hours[department_earning]]")
|
||||||
var/DBQuery/query = dbcon.NewQuery("INSERT INTO vr_player_hours (ckey, department, hours, total_hours) VALUES ('[sql_ckey]', '[sql_dpt]', [sql_bal], [sql_total]) ON DUPLICATE KEY UPDATE hours = VALUES(hours), total_hours = VALUES(total_hours)")
|
var/DBQuery/query = dbcon.NewQuery("INSERT INTO vr_player_hours (ckey, department, hours, total_hours) VALUES ('[sql_ckey]', '[sql_dpt]', [sql_bal], [sql_total]) ON DUPLICATE KEY UPDATE hours = VALUES(hours), total_hours = VALUES(total_hours)")
|
||||||
if(!query.Execute())
|
if(!query.Execute()) //CHOMPEdit
|
||||||
log_admin(query.ErrorMsg())
|
log_admin(query.ErrorMsg()) //CHOMPEdit
|
||||||
|
|
||||||
if (MC_TICK_CHECK)
|
if (MC_TICK_CHECK)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user