Hej! Mam problem jakiego dozna?em podczas pisania kodu do zasobu virtualparking dla s?u?b na w?asny serwer. Niestety, co? posz?o nie tak, i przy wyborze jakiegokolwiek samochodu z parkingu, wyrzuca komunikat:
function newNoti(el,txt,type)
if el==localPlayer then
if type>3 or type<0 or not tonumber(type) then
type=2
end
local type=types[type][1]
table.insert(msgs,{txt=txt,typ=type,easingFunction="Linear",startTime=getTickCount(),endTime=getTickCount()+5000})
end
end
addCommandHandler("dodaj",function(cmd,typ,...)
local msg=table.concat({...}," ")
newNoti(localPlayer,msg,tonumber(type))
end)
addEventHandler("onClientRender",root,function()
offset=0
for _,v in ipairs(msgs)do
local now = getTickCount()
local elapsedTime = now - v.startTime
local duration = v.endTime - v.startTime
local progress = elapsedTime / duration
local fAnimationTime = getEasingValue(progress, v.easingFunction)
zacz??em powoli rozumie? mysql i no korzysta? z tego dobrodziejstwa lecz co? mi nie wychodzi
function biznesNowe(thePlayer, target) id = getElementData(thePlayer, "dbid") zapomnialemoTym = mysql:query_fetch_assoc("SELECT * FROM `characters` WHERE `Liderbiznesu` = '?' AND `id` = '"..id.."'")
if zapomnialemoTym > 0 then
outputChatBox("komunikat!",thePlayer,255,255,255) end
end
na samym pocz?tku by?o samo ? tego '
ps. nada?em se wartosc 1 ale raczej wychodzi? mi taki b??d jak w tytule
Witam, mam problem, wyskakuje mi blad attempt to compare number with string i nie rozumiem o co chodzi (XD)
Tutaj dam czesc kodu ktory jest zwiazany z tym bledem:
function nadawanieGwiazdek(plr,cmd,nick,wartosc) local gracz = getPlayerFromName(nick) local konto = getAccountName(getPlayerAccount(plr)) local kontog = getPlayerAccount(gracz) local poli = getPlayersInTeam(Policja) local bad = "Nieprawidlowe uzycie!nPoprawne uzycie: /wanted <gracz> <gwiazdki>"
if wartosc>0 or wartosc<7 then
setPlayerWantedLevel(gracz,wartosc) setAccountData(kontog,"gwiazdki",wartosc) outputChatBox("dziala")
elseif wartosc==0 then
setPlayerWantedLevel(gracz,0) removeAccountData(kontog,"gwiazdki") outputChatBox("dziala usuwanie")
elseif wartosc<0 or wartosc>6 then if wartosc<0 then
outputChatBox("Minimalna iloscia gwiazdek jest 0!",plr)
elseif wartosc>6 then
outputChatBox("Maksymalna iloscia gwiazdek jest 6!",plr) end
end
Witam posiadam dwa problemy
[19-07-24 22:37:57] ERROR: busty/bust_s.lua:20: attempt to compare boolean with number
[19-07-24 22:37:57] WARNING: busty/bust_s.lua:20: Bad argument @ 'getElementData' [Expected element at argument 1, got string 'down']
[lua]
function setbustrpday(plr,days)
if getbustday(plr) then
local queryA=exports['pystories-db']:dbSet(string.format("UPDATE pystories_users SET bust_rp = DATE(bust_rp) + INTERVAL %d DAY WHERE id=%d",days,getElementData(plr,"player:sid")))
return end
local queryA=exports['pystories-db']:dbSet(string.format("UPDATE pystories_users SET bust_rp = DATE(curdate()) + INTERVAL %d DAY WHERE id=%d",days,getElementData(plr,"player:sid")))
end
function getbustday(plr)
local queryA=exports['pystories-db']:dbGet("SELECT * FROM pystories_users WHERE id=? AND bust_rp>NOW() LIMIT 1", getElementData(plr,"player:sid"))
if (queryA and #queryA > 0) then
return queryA[1].bust_rp
end
return false
end
addEvent("dajbusta", true)
addEventHandler("dajbusta", resourceRoot, function(dni,plr,value)
if getElementData(plr,"player:pktgry") == 10 then triggerClientEvent(plr, 'onClientAddNotification', plr, "Kupi?e? busta RP na 1 dzie? ", 'succes')--linijka 18
else
if not getElementData(plr,"player:pktgry")<10 then triggerClientEvent(plr, 'onClientAddNotification', plr, "Nie posiadasz odpowiedniej ...
Witam mam problem poniewa? jak ??cze si? na sw?j serwer to mam
External HTTP file mismatch (Retrying this file with internal HTTP)
i nie mam ?adnych grafik.
Wyżej wymienione systemy. Więc ludzie, można trafić jak/Subskrybuj Jeśli do tej pory nie jesteś i jeśli chcesz przekazać film dalej lub ustawić niekt?re z pomysł?w i może dzielić się nimi z wami. Dziękuję