addEventHandler("onResourceStart", resourceRoot, function()
dbQuery(toptime, db, "SELECT name, time FROM general ORDER BY time DESC LIMIT 20")
dbQuery(topkill, db, "SELECT name, kills FROM general ORDER BY kills DESC LIMIT 20")
dbQuery(topdrift, db, "SELECT name, drift FROM general ORDER BY drift DESC LIMIT 20")
dbQuery(toprecord, db, "SELECT name, record FROM general ORDER BY record DESC LIMIT 20")
dbQuery(toplvl, db2, "SELECT name, lvl FROM general2 ORDER BY lvl DESC LIMIT 20")
dbQuery(topeff, db2, "SELECT name, eff FROM general2 ORDER BY eff DESC LIMIT 20")
end)
setTimer(function()
dbQuery(toptime, db, "SELECT name, time FROM general ORDER BY time DESC LIMIT 20")
dbQuery(topkill, db, "SELECT name, kills FROM general ORDER BY kills DESC LIMIT 20")
dbQuery(topdrift, db, "SELECT name, drift FROM general ORDER BY drift DESC LIMIT 20")
dbQuery(toprecord, db, "SELECT name, record FROM general ORDER BY record DESC LIMIT 20")
dbQuery(toplvl, db2, "SELECT name, lvl FROM general2 ORDER BY lvl DESC LIMIT 20")
dbQuery(topeff, db2, "SELECT name, eff FROM general2 ORDER BY eff DESC LIMIT 20")
end,600*1000,0)
I m trying to sort it Will I have any problems if I use it this way? or how can I do it better?