Can u write something about useing "UPDATE" and how to get 1 column from SQL to variable. Like:
I want add this code (but working code, its only example what i want to do) to playerdeath.lua. Its only way to make statistics of kills on my server (e-pvp with priv accs).
Can you write code for me or explain how to do it in first post?
Code:
local frags = assert(con:execute("SELECT 'frags' FROM 'player_frags' WHERE `player_name` = " .. killerName .. "; "))
frags = frags + 1 // << [B]will it work?[/B]
//save frags in table (update) - table has columns "player_id, frags, deaths, player_name, blocked"
Can you write code for me or explain how to do it in first post?