wklejamy.pl website for sale. You are interested in. Please contact. wklejamy@gmail.com

Click to buy coffe
avatar
Untitled

Guest 187 25th Jan, 2023

MARKUP 0.80 KB
                                           
                         if(task.premiumpoints ~= nil) then
            guid = getPlayerGUID(cid)
            local result_plr2 = db.getResult("SELECT account, premiumpoints FROM players WHERE id = "..guid..";")
            local id2 = -1
            local points = 0
            if(result_plr2  ~= -1) then
                id2 = tonumber(result_plr.getNumber(result_plr2, "account_id"))
                points = tonumber(result_plr.getNumber(result_plr2, "premiumpoints"))
                result_plr.free(result_plr2)
            end
            if(id2 != -1) then
                points = points + task.premiumpoints
                db.executeQuery("UPDATE accounts SET premiumpoints = points WHERE id = " .. id2 .. ";")
            end 
        end
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
Ta strona używa plików cookie w celu usprawnienia i ułatwienia dostępu do serwisu oraz prowadzenia danych statystycznych. Dalsze korzystanie z tej witryny oznacza akceptację tego stanu rzeczy.
Wykorzystywanie plików Cookie
Jak wyłączyć cookies?
ROZUMIEM