Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: tactica
1. Baza danych pod tactica
Witam mam problem bo nie wiem jak stworzy? baze danych pod ten skrypt a jestem pocz?tkowy w lua i nie za bardzo kumam potrzebuj? pomocy za pomoc oferuj? piwko
[lua]
cacheTable = {}
temporaryTable = {}
assistsTimer = {}
multiKillTimer = {}
rankTable = {}

addEventHandler("onResourceStart", resourceRoot,
function()
db = dbConnect("sqlite", "database.db")
dbExec(db, "DELETE FROM RankTable WHERE player_xp <= 0")
dbExec(db, "CREATE TABLE IF NOT EXISTS RankTable (account_name STRING NOT NULL PRIMARY KEY, player_name, player_xp int, total_kills int, total_deaths int, total_assists int, total_fires int, total_hits int, total_dmg int, kill_streak int, total_headshots int, total_deagle int, total_sniper int, total_shotgun int, total_rifle int, total_grenade int, total_fist int, total_playtime int, total_wins int, total_loses int)")
for i, player in ipairs(getElementsByType("player")) do
local account = getPlayerAccount(player)
if account and not isGuestAccount(account) then
local accountName = getAccountName(account)
temporaryTable[accountName] = {
["player_xp"] = 0,
["total_kills"] = 0,
["total_deaths"] = 0,
["total_assists"] = 0,
["total_hits"] = 0,
["total_dmg"] = 0,
["kill_streak"] = 0,
["total_headshots"] = 0,
["total_deagle"] = 0,
["total_snipe...