Witam, mam problem z exportem, ot?? posiadam panel sms api, kt?ry sam przerobi?em, lecz po kupnie premium w DB nic sie nie zmiania. Db3 nic nie pokazuje.
local result = exports['ogrpg-db']:dbSet(string.format("UPDATE ogrpg_users SET premiumdate = NOW() + INTERVAL %d DAY WHERE id=%d",days,getElementData(playerToReceive,"player:uid")))
=DC=, Niestety nie dzia?a, lecz przerobi?em kod wygl?da tak
local result = exports['ogrpg-db']:dbSet('UPDATE ogrpg_users SET premiumdate= NOW()+INTERVAL '..days..' DAY WHERE id=?',days,getElementData(playerToReceive,"player:uid"))
Teraz wszystko jest niby ok, ale zawsze daje typowi z id 3 w kolumnie premke zamiast pobiera? moj? id czyli 6.
local result = exports['ogrpg-db']:dbSet('UPDATE ogrpg_users SET premiumdate= NOW()+INTERVAL '..days..' DAY WHERE id=?',getElementData(playerToReceive,"player:uid"))
Zapomnia?e? usun?? "days" a pewnie testowa?e?, ?e ma dawa? na 3 dni.
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach