Cze??.
Pozw?lcie ?e odrazu przejd? do sedna. Zaznaczam ?e jestem jeszcze zielony w LUA. Dzisiaj pr?bowa?em zmieni? skrypt logowania, aby konta dzia?a?y pod aktualn? baz? danych. Gdy zrestartowa?em wszystkie skrypty odpowiadaj?ce za db i logowanie wyskakuje nast?puj?cy b??d:https://i.imgur.com/4KW6e8L.png. Gdyby kto? wyt?umaczy? mi o co mo?e chodzi? by?bym bardzo wdzi?czny.
addEventHandler("onClientMarkerHit", rozpoczecie, function(gracz)
if gracz ~= localPlayer then return end
if getPedOccupiedVehicle(localPlayer) then return end
if getElementData(localPlayer, "pracuje") then
if getElementData(localPlayer, "pracuje") ~= "kosiarki" then exports["np-notyfikacje"]:noti("Posiadasz inn? aktywn? prace!", "error") return end
end
addEventHandler("onClientRender", root, guistart)
okno1 = true
showCursor(true)
triggerServerEvent("pokazTopke:kosiarki:source", localPlayer)
end)
local font = dxCreateFont("cz.ttf", 10)
local font2 = dxCreateFont("cz.ttf", 12)
local font = dxCreateFont("cz.ttf", 10)
local font2 = dxCreateFo...
for i,v in ipairs(positionVehicles) do
local pojazd = createVehicle(573, v[1], v[2], v[3], v[4], v[5], v[6])
setElementData(pojazd, "pojazd_opis", "Praca dorywczanRopa")
setElementData(pojazd, "pojazd_paliwo", 50)
setElementFrozen(pojazd, true)
end
addEventHandler("onVehicleEnter", resourceRoot, function(plr, seat)
if seat == 0 then
setElementFrozen(source, false)
setElementData(plr, "gracz_praca", true)
outputChatBox("* Rozpocz??e?/a? prac?.", plr)
triggerClientEvent(plr, "STARTJobTrash", resourceRoot)
setElementData(source, "pojazd_opis", "Ropa: 0%")
end
end)
function respawnVehicles()
for i,v in ipairs(getElementsByType("vehicle", resourceRoot)) do
if not getVehicleOccupant(v) then
respawnVehicle(v)
setElementFrozen(v, true)
setElementData(v, "poja...
Witam ot?? gdy chc? rozpocz?? kurs na prawa jazdy nie mog?, nic si? nie respi oraz wyskakuje b??d w DB3
[lua]ERROR: Client (FajnyNick) triggered serverside event license:do, but event is not added serverside[/lua]
2erro w DB3
[lua]Loading script failed ogrpg-offices/lincense/s_zdawanie.lua:79: unexpected symbol near')'[/lua]
kod
c_category
[lua]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
[lua]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
Witam. Mam problem taki jak w tytule czyli gdy chce ulepszy? silnik lub cokolwiek w db3 wyskakuje ?e event nie jest dodany do serverside a jest dodany
wszystkie kody:
[lua]function isMouseInPosition ( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then
return true
else
return false
end
end