Permalink
Browse files

Karma -> Credits ( Copy & Paste from ttt.sp)

  • Loading branch information...
Bara committed Jan 2, 2018
1 parent 0effa0c commit 3b64cf13d90b832ab6123ff02af69f073d05054f
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/sourcemod/scripting/ttt/ttt_shop.sp
@@ -381,11 +381,11 @@ stock void UpdatePlayer(int client)
if (TTT_GetConnectionType() == dMySQL)
{
Format(sQuery, sizeof(sQuery), "INSERT INTO ttt (communityid, karma) VALUES (\"%s\", %d) ON DUPLICATE KEY UPDATE karma = %d;", sCommunityID, g_iCredits[client], g_iCredits[client]);
Format(sQuery, sizeof(sQuery), "INSERT INTO ttt (communityid, credits) VALUES (\"%s\", %d) ON DUPLICATE KEY UPDATE credits = %d;", sCommunityID, g_iCredits[client], g_iCredits[client]);
}
else
{
Format(sQuery, sizeof(sQuery), "INSERT OR REPLACE INTO ttt (communityid, karma) VALUES (\"%s\", %d);", sCommunityID, g_iCredits[client], g_iCredits[client]);
Format(sQuery, sizeof(sQuery), "INSERT OR REPLACE INTO ttt (communityid, credits) VALUES (\"%s\", %d);", sCommunityID, g_iCredits[client], g_iCredits[client]);
}
ConVar cvar = FindConVar("ttt_debug_mode");

0 comments on commit 3b64cf1

Please sign in to comment.