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: call
1. {BAZA DANYCH} attempt do call global "rpg_mysql" (
Witam
Chcialem podpi?? baze danych pod serwer
po czym dostaje komunikat z DB1 https://imgur.com/a/ozqywvQ
Wie ktos o co chodzi ?
Z gory dziekuje za pomoc !
2. attempt to call global 'guiCreateWindow' (a nil value)
takie co? mi wyskoczy?o i nie wiem co zrobi? wszystko jest ok, ale jak uruchamiam skrypt taki oto komunikat


okno 
guiCreateWindow(0.360.420.200.07"nazwa"true)
3. call: failed to call, przechowywalnia ogrpg
Siemka,

Gdy oddaje auto do przechowywalni, i jak je wyjmuje to w db3 nastepuje ten blad

[img]https://i.imgur.com/EyZZwIf.png[/img]

Prawdopodobnie przez ten b??d nie zapisuj? mi si? tuningi zrobione w tunerze, swiatla itp.

Kod przecho ca?y:

[lua]


local marker=createMarker(-1787.69,785.37,24.89-5.0, "cylinder", 5, 143,0,255,100)
createBlip(-1800.91,802.22,24.89, 35,2,0,0,0,0,0,250)
local mdestroy = createMarker(-1787.59,801.46,24.89-5.0, "cylinder", 5, 143,0,255,100)
local t=createElement("text")
setElementData(t,"scale",1)
setElementData(t,"name","Pozostawianie pojazd?w")
setElementPosition(t,-1787.59,801.46,24.89+1.3)
local tt=createElement("text")
setElementData(tt,"scale",1)
setElementData(tt,"name","Odbi?r pojazd?w")
setElementPosition(tt,-1787.69,785.37,24.89+1.3)

addEvent("onParkingGetRekords", true)
addEventHandler("onParkingGetRekords", root, function()
local uid=getElementData(source,"player:uid")
if not uid then return end
local org = getElementData(source,"player:organization")
local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_vehicles WHERE (ownedPlayer=? OR ownedGroup=?) AND parking=1",uid,org or "Brak")
if #result > 0 then
triggerClientEvent(source, "onParkingGetVehicles", source, result)
end
end...
4. attempt to call global 'playSound' (a nil value)
my?l? i my?l? jak zrobi? by nie wywala?o wciska?em wsz?dzie ju?
attempt to call global 'playSound' (a nil value)

[lua]addCommandHandler("b", function(plr,cmd,cel,x,bantype,...)
if BWADMIN(plr,3) or BWADMIN(plr,2) or BWADMIN(plr,1) or BWADMIN(plr,5) or BWADMIN(plr,4) or BWADMIN(plr,7) then
local reason=table.concat({...}, " ")
if not cel or not tonumber(x) or not bantype or not reason then
--outputChatBox("#007aff(ⓘ) #FFFFFFU?ycie: /b <nick/ID> <ilo??> <m/h/d> <pow?d>", plr, 255,255,255, true)
triggerClientEvent(plr, 'onClientAddNotification', plr, "U?ycie: /b <nick/ID> <ilo??> <m/h/d> <pow?d>nm - Minuty h - Godziny d - Dni ", 'info')
return
end
local target=exports["bw-core"]:findPlayer(plr,cel)
if not target then
triggerClientEvent(plr, 'onClientAddNotification', plr, "Nie znaleziono podanego gracza.", 'error')
return
end
if (BWADMIN(plr,7) == false) and BWADMIN(target,7) then return end
if target then
local muza = playSound("ban.mp3") return
end
--reason = reason.." |od "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").."|"
if bantype=="m" or bantype=="h" or bantype=="d" then
if bantype=="m" then
exports["bw-db"]:bazaustaw("INSERT INTO bw_zbanowanij (serial,reason,time,type) VALUES (?,?,NOW() +...
5. failed to call dbConnect:dbSet [string "?"]
Kod:
exports["dbConnect"]:dbSet("UPDATE vehicles SET capacity=1.8 WHERE id=?"id)


db: failed to call dbConnect:dbSet [string "?"]

Wszystko moim zdaniem dobrze, ale wed?ug db nie mo?e znale?? ...

:roll:

:=: R* :+: :piwo: :idea:
6. attempt to call global 'guiCreateWindow' (a nil value)
DB 3 pokazuje error w 7 linijce :

Kod:

attempt to call global 'guiCreateWindow' (a nil value)



 local okno guiCreateWindow(0.350.290.300.43"Lista log?w serwerowych"true
7. [BROŃ] Call of Duty Infinite Warfa




PEŁNY EKRAN Odnośnik YouTube




DOWNLOAD

Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.


8. [BROŃ] Call of Duty Infinite Warfa



PEŁNY EKRAN Odnośnik YouTube






DOWNLOAD

Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.


9. attempt to call global 'getAdmin' (a nil value)
Witam co? nie ??czy nie wiem o co chodzi pr?bowa?em co? zmienia? ale nie dzia?a.

B??d : ERROR: [skrypty]/YL-pojazdy/s_vehbuy.lua:278: attempt to call global 'getAdmin' (a nil value)


Skrypt:

addEventHandler
("onVehicleStartEnter"resourceRoot, function(plr,seat,jacked)
    if 
seat == 0 then
        local rent
=getElementData(source"vehicle:rent")
        
local group=getElementData(source"vehicle:ownedGroup")
        if 
group == "0" then group "Brak" end
        local player
=getElementData(source"vehicle:ownedPlayer")
        if (
getAdmin(plr,4)) then
            
return
        
end
        
if rent and (type(rent) == "table"then
            
for i,s in pairs(rent) do
                if 
tonumber(s) == getElementData(plr,"player:sid"then
                
return end
            end
        end
        
        local plrgroup 
getElementData(plr,"player:organization")
        if 
plrgroup then
            
if getSettings(plr,false,"organization") == group then return end
        end
        
if player and player ~= getSettings(plr,false,"owner"then
            outputChatBox
("* Nie posiadasz kluczyk?w do tego pojazdu."plr)
            
cancelEvent()
        
end
    end
end
)
10. attempt to call global 'mysql_connect' (a nil value)
Witam, mam problem z skryptem DB
Wyskakuje mi taki b?ad jak w temacie.
11. [SAMP] CALL OF DUTY SA:MP EDITION
Hello!

CALL OF DUTY SA:MP EDITION - CHEATER ATAKUJE!

>>> https://www.youtube.com/w..._FK9MMRhEM&t=6s <<<
12. attempt to call global (a nill value)
Wywala b??d z: attempt to call global 'setDevelopmentMode' (a nill value)

Kod:
addCommandHandler"dev",
function ()
    
setDevelopmentMode true )
end
)

Kto? pomo?e? ;x
13. gui guisetvisible "attempt to call global"
[lua]GUIEditor = {
button = {},
window = {},
memo = {}
}

addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
psfstart = guiCreateWindow((screenW - 840) / 2, (screenH - 595) / 2, 840, 595, "PSF", false)
guiWindowSetMovable(GUIEditor.window[1], false)
guiWindowSetSizable(GUIEditor.window[1], false)

psfstartbutt = guiCreateButton(10, 30, 190, 54, "test", false, psfstart)
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "Font", "default-bold-small")

reg = guiCreateButton(10, 94, 190, 54, "test", false, psfstart)
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0006")

cmd = guiCreateButton(10, 158, 190, 54, "test", false, psfstart)
guiSetFont(GUIEditor.button[3], "default-bold-small")

anim = guiCreateButton(10, 222, 190, 54, "test", false, psfstart)
guiSetFont(GUIEditor.button[4], "default-bold-small")

ekipa = guiCreateButton(10, 286, 190, 54, "test", false, psfstart)
guiSetFont(GUIEditor.button[5], "default-bold-small")

vip = guiCreateButton(10, 350, 190, 54, "test&quo...
14. Failed to call
Witam. Mam pewn? funkcj?:

function blablabla(par1,par2)
end


I kiedy chce si? do niej odwo?a? w innym pliku za pomoc? "call" to wyskakuje komunikat w debug'u "Failed to call: 'blablabla'".

Oczywi?cie w mecie zosta?a umieszczona linijka:
<export function="blablabla"/>


W czym tkwi problem?