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: minute
1. Nie mogę wypłacać co minute
Siema tak jak w temacie

local minut= 1 
function sypnijmu()
local marker = getElementsByType("pickup")
for 
_,m in ipairs(marker) do
if 
getElementData(m, "owner") then
local wyplata
= getElementData(m, "payday")
exports['ogrpg-db']:dbSet("UPDATE biznesy SET saldo=saldo+?? WHERE id=?",wyplata,getElementData(m,"id"))
end
end
end
setTimer
(sypnijmu,1000*minuta,0)
2. Zmiana zarobków za minute aktywności w frakcji
Witam, gdzie mog? zmieni? zarobki za minut? bycia aktualnie w frakcji na serwerze ?
Gm : PYS
3. Respekt co minutę
Witam. Znowu mam problem z respektem. A minowicie chcia?em, aby dawa?o 1 respektu co minut?, ale nie daje a w db3 jest taki b??d:

:4: Attempt to arithmetic on local 'data' (a boolean value)


Tutaj kod:

local player = getLocalPlayer ()
function 
resp_minuta ()
     
local data = getElementData(player, "Respekt")
         
setElementData (player, "Respekt", data + 1)
end
setTimer 
(resp_minuta, 60*1000, 0)


Je?li kto? mi to zrobi to dam :arrow: :piwo: i R*