*Resursă folosită:
questlib.lua
Cod: Selectaţi tot
function give_jd(z)
os.execute("mysql -u user -p voucher account --execute='UPDATE account SET jcoins = jcoins + ".. z .." WHERE id = ".. pc.get_account_id() ..";'")
os.execute("mysql -u user -p voucher log --execute='INSERT INTO voucher_log (account_id, monede, data) VALUES (".. pc.get_account_id() ..", ".. z ..", NOW());'")
endCod: Selectaţi tot
quest vouchers begin
state start begin
when 50023.use begin
say_title("Voucher Jetoane Dragon")
say("Ai primit 15 Jetoane Dragon")
give_jd(15)
item.remove()
end
end
end*ServerFiles utilizat:
*Syserr: Nimic
Poză:
*Detalii suplimentare: - In loc de user si voucher am pus userul si parola mea. Nu apare nimic in log cand le folosesc


daca te-am ajutat.
