debug, debug, debug
local row = executeSQLQuery("SELECT deaths FROM playerstbl WHERE accountname = '"..getAccountName(acc).."'") -- WTF is that? i didnt see its here -> ["deaths"]
if not row then
outputDebugString("there was no row")
deaths = 1
else
outputDebugString("there was one row with deaths "..row['deaths'].." now its "..row['deaths']+1)
deaths = row['deaths'] +1
end
executeSQLUpdate("playerstbl", "deaths = '"..deaths.."'", "accountname = '"..getAccountName(acc).."'")
and btw, your script is unsafe, read about SQL Injections