Witam tak jak w temacie wyświetla mi się takie coś
ERROR: [vehicles][systems]ior_vehicles/server/vehicles_server.lua:494: call: failed to call 'or _stock_vehicles:saveStockVehicles' [string "?"]
ERROR: [vehicles][systems]ior_vehicles/server/vehicles_server.lua:203: call: failed to call 'or stock_vehicles:loadStockVehicles' [string "?"]
Pr?bowa?em ju? to przerabia? z innym skryptem ale mi nie wychodzi
M?g?by kto? mi podpowiedzie? co mam zrobi? ?eby to dzia?a?o? Og?lnie skrypt mam z internetu i chce go przerobi?. Tylko problem mam i nie wy?wietla wog?le avataru. Za pomoc daje Browaryy
Witam mam problem z prac? po stronie serwera mianowicie pr?buje zrobi? prac? polegaj?c? na za?adowaniu dostawczka, po czym mo?emy wywie?? towar.
Z grupsza ow? prac? napisa?em lecz mam problem z outputchatboxem oraz funkcjami niekt?rymi, gdy? wykonuj? one si? ka?demu graczowi, kt?ry posiada rozpocz?t? prac?.
Kod:
[lua]
--------------------------WYWOZ KONOPII
local marker1 = {}
local marker2 = {}
local marker3 = {}
local marker4 = {}
local marker5 = {}
local marker6 = {}
local marker7 = {}
local marker8 = {}
local marker9 = {}
local marker10 = {}
local pojazd = {}
local marker_praca = {}
local blip_praca = {}
addEvent("RozpocznijWywoz",true)
addEventHandler("RozpocznijWywoz",root,function()
--[[ if getElementData (source, "rozpoczeta") == true then return end
if getElementData (source, "oddaj") == true then return end
if getElementData (source, "nadruga") == true then return end
if getElementData (source, "natrzecia") == true then return end
if getElementData (source, "oddajdwa") == true then return end
if getElementData (source, "oddajtrzy") == true then return end
if getElementData (source, "oddalall") == true then return end
if getElementData (source, "dojazdlegalna") == true then return end
if getElementData (source, "dojazdnielegalna") == true then return end
]]...
Nie wiem czy ja nie wyspany, czy co ale wsz?dzie jest localPlayer, ca?y skrypt client-side a dxdraw ten od rozpocznij prace wy?wietla wszystkim o co kaman
cside
[code]
--[[
Praca Magazyniera V.2
Autorem jest adaskOO(Roe)
Zakaz zmieniania autora!
JeĹĽeli postanowisz edytowa?‡ ten skrypt, dopisz siebie. Prosze doce?„ moj?… prace i nie usuwaj autora!
Udost?™pniono na gtao.pl 11.11.2018.
Client Side
--]]
Witam ! Sprawa wygl?da tak gdy wchodz? na duty admina to nie wy?wietlam si? jako deweloper ani na scoreboard ani /admins i przy nicku r?wnie? nie mam napisu. Dodam ?e serwer stoi na paczce PSSM (ogrpg). Za wszelk? pomoc dzi?kuje i stawiam piwko oraz reputacje
Wi?c tak problem polega na braku kolor?w w ScoreBoardzie ... dodawa?em ka?d? mo?liw? funkcj? local r , g ,b getPlayerNameTag ( theplayer ) i z bia?ego koloru w tabeli robi si? czarny kolor a tu w?a?nie chodzi o to aby kolory Administracji pobiera? ten scoreboard [ RCON ] Czerwony itd.
Podaj? kod , skryptu :
[code]
local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
local w, h=(sx/1680), (sy/1050)
function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end
local tabulator = false
local czcionka = dxCreateFont("f.ttf", 13*w)
local czcionka2 = dxCreateFont("f.ttf", 18*w)
local k = 1
local n = 13
local m = 13
if not czcionka then
czcionka = "default"
end
local zakladki = {
id = "ID",
name = "Nazwa",
reputation = "RP",
organization = "Organizacja",
uid = "UID",
ping = "Ping",
faction = "Frakcja",
}
local ss = 1
local tabulator=false
local ping = {}
function sort(op1, op2)
if isElement(op1) and isElement(op2) then
return getElementData(op1, "id") < getElementData(op2, "id")
end
end
Mam drobny k?opot, pr?bowa?em zrobi? obrazek kt?ry b?dzie porusza? si? w ruch myszki(teksture z drift paradise wzi??em)
Niestety nic nie wy?wietla na ekranie, tak samo z db3 kt?re jest puste.
I = {} UI.textures = {} local screenW, screenH = guiGetScreenSize() MAX_TRANSFORM_ANGLE = 12
dxSetRenderTarget()
if renderTarget then
rt3DDraw( renderTarget, 0, 0, screenW, screenH )
local mx, my=getCursorPosition( ) mx=mx*screenW
my=my*screenH if not isCursorShowing() then
mx, my=0*screenW, 0*screenH
end
local rx=-( mx-screenW/2 )/screenW*MAX_TRANSFORM_ANGLE
local ry=( my-screenH/2 )/screenH*MAX_TRANSFORM_ANGLE
Dobry,
Jak naprawi? b??d, ?eby wy?wietla?o licznik? Posiadam licznik z ownworld i nie dzia?a mi a wcze?niej dzia?a?, nie wy?wietla si? teraz a nic nie zmieni?em, nie ma ?adnych b??d? w DB3
kod:
[lua]
--[[
autor: Asper & Payro
for: Own World
All rights reserved!
]]
--variables main
local screenW,screenH = guiGetScreenSize()
local sw,sh = guiGetScreenSize()
local f1 = dxCreateFont("f.ttf", 11)
local f2 = dxCreateFont("f.ttf", 32)
local skala = 1
if sw == 1920 then
skala = 1.2
elseif sw >= 1400 and sw < 1600 then
skala = 1
elseif sw >= 1600 and sw < 1920 then
skala = 1.1
elseif sw >= 1280 and sw < 1400 then
skala = 0.9
else
skala = 0.7
end
--
local nitroScale = 1
addEventHandler("onClientRender", root, function()
--in vehicle
local veh = getPedOccupiedVehicle(localPlayer)
if not veh then return end
--
local nitroLevel = getVehicleNitroLevel(veh)
if nitroLevel ~= false and getVehicleController(veh) == localPlayer then
if isVehicleNitroActivated(veh) == true and getKeyState("lalt") ~= true then
triggerServerEvent("setNitroState", resourceRoot, veh, false)
elseif isVehicleNitroActivated(veh) ~= true and getKeyState("lalt") == true and (math.floor(nitroLevel*100)) > 10 then
triggerServerEvent("setNitroState", resourceRoot, veh, true)
end
if nitroLevel < 1 and isVehicleNitroActivated(veh) ~= true ...
witam pisze skrypt na osiagniecia ale gui nie chce sie wyswietlic oto kod:
--[[ Autor Skryptu: bover. Prawa: Creative commons ]]-- local screenW, screenH = guiGetScreenSize()] tak = false
addCommandHandler("og", function(plr)
if tak == true then
tak = false else tak = true
end
end)
function pokaz(plr)
if tak == false then return end
dxDrawRectangle(screenW * 0.3661, screenH * 0.0004, screenW * 0.2690, screenH * 0.9999, tocolor(0, 0, 0, 168), false) end
Witam, to znowu ja a mianowicie m?j 3 skrypt autorski kt?ry robi?em by? akurat na Panel Gracza obowiam si? ?e to chyba przez inn? zmiane po?o?enia skrypt?w lub si? myl?? prosz? o pomoc! wynagrodze piwem na przyk?adu da?em kod na dole mo?e wy b?dziecie wiedzieli co zrobi?em ?le.
[lua]local dxfont0_tak = dxCreateFont("tak.ttf", 31)
local screenW, screenH = guiGetScreenSize()
local start = getTickCount()
function render()
setElementData(localPlayer,"panelGracz",true)
local now = getPowCount()
local endTime = start + 2000
local elapsedTime = now - start
local duration = endTime - start
local progress = elapsedTime / duration
local fAnimationTime = getEasingValue(progress, "Linear")
if alpha and alpha <= 255 then
alpha = (1+fAnimationTime)*50
end
if alpha2 and alpha2 <= 162 then
alpha2 = (1+fAnimationTime)*50
end
guiSetAlpha(button,alpha*0.005)
dxLineDrw((screenW * 0.7750) - 1, (screenH * 0.3255) - 1, (screenW * 0.7750) - 1, screenH * 0.5911, tocolor(255,0,0, alpha2), 1, false)
dxLineDrw(screenW * 0.9890, (screenH * 0.3255) - 1, (screenW * 0.7750) - 1, (screenH * 0.3255) - 1, tocolor(255,0,0, alpha2), 1, false)
dxLineDrw((screenW * 0.7750) - 1, screenH * 0.5911, screenW * 0.9890, screenH * 0.5911, tocolor(255,0,0, alpha2), 1, false)
dxLineDrw(screenW * 0.9890, screenH * 0.5911, screenW * 0.9890, (screenH * 0.3255) - 1, tocolor(255,0,0, alpha2), 1, fal...
Witam. Zrobi?em licznik, wszystko pi?knie ?adnie.
Wgra?em na testowy serwer, popatrzy?em, wszystko dzia?a?o jak nale?y - na mojej rozdzielczo?ci 1366x768 (16:9).
Witam! Przychodze z pewnym problemem. Zrobi?em GUI do mojego skryptu, zrobi?em tak ?eby pojawia?o si? po wej?ciu w marker.. Wszystko pi?knie i ?adnie lecz jest jedno ale... Gui pojawia si? dla ka?dego gracza na serwerze Co zrobi?em nie tak?
function otworzOkno(hitPlayer, matchingDimension)
if source==zakupBaz then
guiSetVisible(OknoGlowne,true) showCursor(true) end
end
addEventHandler("onClientMarkerHit",getRootElement(),otworzOkno)
kod ten sprawdza czy pojazd, do kt?rego wszed? gracz to Pizzaboy
je?li jest to prawda, to wy?wietla okienko, problem w tym, ?e powinien (z za?o?enia) tylko temu graczowi, kt?ry wszed? do pojazu, a pojawia si? wszystkim graczom
function sprawdzanieOkienko() local theVehicle = getPedOccupiedVehicle(source)
if(getVehicleName(theVehicle)) == "Pizzaboy" then
sX, sY = guiGetScreenSize() gui_Window = guiCreateWindow(0.104, 0.326, 0.232, 0.301, "Pizzaboy", true) gui_Memo = guiCreateMemo(0.039, 0.12, 0.923, 0.8, "opis",true, gui_Window) end
end
addEventHandler("onClientPlayerVehicleEnter", getRootElement(), sprawdzanieOkienko)
co jest w tym kodzie nie tak? podany kod jest po stronie clienta
Witam, posiadam skrypt na teleportowanie si? na spawn za pomoc? komendy. Tylko w tym skrypcie jest jeden bug ?e gdy kto kolwiek wpisze komende /spawn komunikat wy?wiela sie ka?demu "Witaj na spawnie " prosze o pomoc.
spawn.lua
function joinHandler() local x = -1916.6762695313
local y = 883.24578857422
local z = 35.4140625
spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Witaj na serwerze. Zyczymy milej gry!", source) end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
function CommandHandler( thePlayer ) setElementPosition (thePlayer, -1916.6762695313 ,883.24578857422 ,35.4140625 ) outputChatBox("Witaj na spawnie :D", source) end
addCommandHandler("spawn", CommandHandler)
function fix1(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
local theVehicle = getPedOccupiedVehicle ( thePlayer) local succes = fixVehicle ( theVehicle )
if ( succes ) then
outputConsole ("Pojazd naprawiony", thePlayer ) end
end
end
addCommandHandler("fix", fix1)
[lua]local function playerChat(message, messageType)
if messageType == 0 then
cancelEvent()
local red, green, blue = 255, 255, 255
local x,y,z = getElementPosition(source)
for key, gracze in ipairs(getElementsByType("player")) do
local x2,y2,z2 = getElementPosition(gracze)
if (getDistanceBetweenPoints3D(x,y,z,x2,y2,z2)<35) then
local int = getElementInterior(source)
local dim = getElementDimension(source)
local int2 = getElementInterior(gracze)
local dim2 = getElementDimension(gracze)
local id = getElementData(source, "id")
if (int == int2 and dim == dim2) then
if getElementData(source, "ekipa") == 4 then
outputChatBox("#4060E0 ("..getElementData(source,"id")..")#ffffff "..getPlayerName(source)..": #FFFFFF"..message, gracze, red, green, blue, true )
elseif getElementData(source, "ekipa") == 3 then
outputChatBox("#990000 ("..getElementData(source,"id")..")#ffffff "..getPlayerName(source)..": #FFFFFF"..message, gracze, red, green, blue, true )
elseif getElementData(source, "ekipa") == 2 then
outputChatBox("#FF0000 ("..getElementData(source,"id")..")#ffffff "..getPlayerName(source)..": #FFFFFF"..message, gracze, red, green, blue, true )
elseif getElementData(source, "ekipa") == 1 then
outputChatBox("#00990...
Skrypt wy?wietla ka?dym GUI montowania, gdy? kto? inny wjedzie w marker. Drugi problem polega na tym, ?e gdy kto? nie ma danej kwoty to mu bierze pieni?dze i zostawia mu na minusie.
Kod strona clienta (GUI):
[lua]