Witam, jak w temacie mam problem i? po wybraniu spawnu na domek, jak by chcia?o si? zespawni? aczkolwiek pojawia si? czarny ekran(hud oraz czat jest)...
Witam Serdecznie mam taki problem i? ci?gle mi wyskakuje taki b??d w konsoli
Wie kto? o co chodzi i pom?g? by mi to naprawi?..? mog? wam wrzuci? plik do pobrania przez te b??dy nie respi os?b jak do??czaj? na serwer i tak jakby wgl ich nie wczytuje serwer...
[quote][20-02-06 16] WARNING: [DayZ-MTA]/DayZ/login.lua:512: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [DUP x2333]
[20-02-06 16] WARNING: [DayZ-MTA]/DayZ/login.lua:513: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [DUP x2333]
[20-02-06 16] WARNING: [DayZ-MTA]/DayZ/login.lua:532: Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean]
[20-02-06 16] WARNING: [DayZ-MTA]/DayZ/login.lua:585: Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean]
[20-02-06 16] ERROR: [DayZ-MTA]/DayZ/survivorSystem.lua:836: attempt to perform arithmetic on local 'current' (a boolean value)
[20-02-06 16] ERROR: [DayZ-MTA]/DayZ/survivorSystem.lua:817: attempt to perform arithmetic on local 'current' (a boolean value)
[20-02-06 16] ERROR: [DayZ-MTA]/DayZ/survivorSystem.lua:836: attempt to perform arithmetic on local 'current' (a boolean value)
[20-02-06 16] ERROR: [DayZ-MTA]/DayZ/survivorSystem.lua:817: attempt to perform arithmetic on local 'current' (a boolean value)
[20-02-06 16] WARNING: [DayZ-MTA]/DayZ/survivorSystem.lua:1315: Bad argument @ 'setElementModel' [Expected number at argument 2, got boolean][/quote]
Cze??! Robi? system pojazd?w i nie tworzy mi w og?le pojazdu.
Komenda do tworzenia pojazdu:
[lua]addCommandHandler("veh", function(plr, com, model, owner, temp, rejka, r, g, b)
if model then
local x,y,z = getElementPosition(plr)
local rx, ry, rz = getElementRotation(plr)
if owner then else
local owner = "Publiczny"
end
if tonumber(type(temp)) ~= nil and tonumber(temp) > 0 then
local temp = true
else
local temp = false
end
if rejka then else
local rejka = nil
end
if r then else
local r = nil
end
if y then else
local y = nil
end
if z then else
local z = nil
end
local veh = stworzPojazd(model, x, y, z, rx, ry, rz, owner, temp, rejka, r, g, b)
setElementPosition(plr, x+2, y+2, z)
warpPedIntoVehicle(plr, veh)
if getElementData(veh, "uid") then
outputChatBox("* Utworzono "..getVehicleName(veh).." o UID: "..tostring(getElementData(veh, "uid"))..".", plr)
else
outputChatBox("* Utworzono "..getVehicleName(veh)..".", plr)
end
else
outputChatBox("/"..com.." [Nazwa lub ID] ([W?a?ciciel] [Tymczasowy 0-1] [Rejestracja] [R] [G] [B]", plr)
end
end)[/lua]
A tutaj sama funkcja tworz?ca:
[lua]function stworzPojazd(model, x, y, z, rx, ry, rz, owner, temp, rejka, r, g, b)
if model and owner and temp and rejka and r and g and b then
if (tonumber(type(...