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: pokazuje
1. Nie pokazuje sie radar Emerg
link do GM https://gtao.pl/%3Cfont-colorff00ff%3Egm%3C-font%3E-emergency-stories-by-aarb-vt137442.htm

Jak włączę ręcznie zasoby radar i minimape to działa ale jak sie wyjdzie z serwera to już się nie pokazuję próbowałem dodać do auto startu acl i mtaserwera configu ale nic to nie dało.
Co mam zrobić aby mi radar cały czas się pokazywał
2. Nie pokazuje mi skryptu jak chce go wgrac w panelu admina
Witam, napisa?em sobie skrypt na otwieranie bramy, jednak po wgraniu go do folderu resources na file zilla nie pojawia mi sie on w grze jak chce go wgra?, prosz? o pomoc
3. attempt to compare number with nil - pokazuje 13 linia blad
s=Vector2(guiGetScreenSize())
msgs={}

types={
[1]={"succes.png"},
[2]={"info.png"},
[3]={"error.png"},
}

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)

local alpha = (1-fAnimationTime)*255
if alpha<0 then
table.remove(msgs,1)
end
dxDrawRectangle(15, 638+offset, 391, 62, tocolor(57, 57, 57, 182), false)
dxDrawImage(201, 676+offset, 0, 0, v.typ, 0, 0, 0, tocolor(255, 255, 255, alpha), false)
dxDrawImage(822, 428+offset, 0, 0,v.typ, 0, 0, 0, tocolor(255, 255, 255, alpha), false)
dxDrawImage(742, 393+offset, 0, 53, v.typ, 0, 0, 0, tocolor(255, 255, 255, alpha), false)
dxDrawImage(15, 636+offset, 391, 64...
4. Gui pokazuje sie wszystkim
Witam, odk?d zacz??em prace nad prac? magazyniera zapomnia?em jak sie robi?o aby gui sie tylko pokazywa?o osobie kt?ra wchodzi w marker kto? pomo?e dopisa? tutaj to do kodu?

Kod:


local marker = createMarker( 2176.77, -2253.96, 14.07, "cylinder", 2, 0, 64, 255, 75)
local markerZABIERANIA = createMarker(2188.69921875, -2253.8017578125, 13.465845108032-1, "cylinder", 5, 0, 0, 0, 210)


function dxDrawGUI()

dxDrawImage(73*rx, 119*ry, 1297*rx, 712*ry, "tlo_job.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)

exports['dxLibary']:dxLibary_createButton('Zamknij okno',649*rx, 652*ry, 188*rx, 35*ry)
exports['dxLibary']:dxLibary_text('Praca polega na przenoszeniu skrzynek nz dworu do magazynunna wylosowana pulke.nnWynagrodznie:nGracz: 5000 PLN/SkrzynkanGracz premium: 7000 PLN/SkrzynkanGracz Premium+: 8000 PLN/Skrzynka‚ ', 587*rx, 386*ry, 882*rx, 504*ry, tocolor(255, 255, 255, a), 5, 'default', 'center', 'top', false, false, false, true, false)
if getElementData(localPlayer, "praca:magazyn") == true then
exports['dxLibary']:dxLibary_createButton('Zakoncz',649*rx, 608*ry, 188*rx, 35*ry)

else
exports['dxLibary']:dxLibary_createButton('Rozpocznij',649*rx, 608*ry, 188*rx, 35*ry)
end

end
5. nie pokazuje się gui
Witam mam problem gdy robie tabelowo markery to gui si? nie pojawia

markerybramek 
= {
        {-
2668.281270.7455.43},
        {-
2676.891270.8555.43},
        {-
2685.521270.5655.43},
        {-
2694.521270.7155.43},

    }
    for 
_,v in ipairs(markerybramek) do
        
xd createMarker(v[1], v[2], v[3]-0.5"cylinder"32552500170)
        
end

        
--local xd createMarker(-2685.521270.5655.43-1"cylinder"1.5064,255,0,0)

    
addEventHandler("onClientMarkerHit",xd, function(el,md)
        if 
el~=localPlayer then return end
        
--if getPedOccupiedVehicle(elthen return end
            showCursor
(true)
            
addEventHandler("onClientRender"rootgui_bramki)
            
setElementData(el"marker:bramki"true)
            
setElementFrozen(eltrue)
    
end)

db3 czyste a gdy dodam jedne marker nie tabelowo to wszystko pokazuje ?adnie
6. Panel logowania nie pokazuje miejsca do zalogowania się
Witam chce si? zalogowa? ale nie ma nigdzie linijki do wpisania loginu i hasla
dam pare kod?w bo nw jaki do tego s?u?y[lua]if getElementData(localPlayer, "player:sid") then return end

local root = getRootElement()
local resourceRoot = getResourceRootElement(getThisResource())
local screenWidth, screenHeight = guiGetScreenSize()
local screenW,screenH = guiGetScreenSize()


local blurStrength = 20


local myScreenSource = dxCreateScreenSource(screenWidth, screenHeight)
blurShader, blurTec = dxCreateShader("shaders/BlurShader.fx")


function renderblur()
if blur == true then
dxUpdateScreenSource(myScreenSource)

dxSetShaderValue(blurShader, "ScreenSource", myScreenSource);
dxSetShaderValue(blurShader, "BlurStrength", blurStrength);
dxSetShaderValue(blurShader, "UVSize", screenWidth, screenHeight);

dxDrawImage(0, 0, screenWidth, screenHeight, blurShader)
end
end
addEventHandler("onClientRender", root, renderblur)

addEventHandler("onClientResourceStop", resourceRoot,
function()
if blurShader and isElement(blurShader) then
destroyElement(blurShader)
blurShader = nil
end
end)

x,y=2513.58, 1282.80-- my width
intro_step=math.random(0,850)

local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return ...
7. Podczas logowania pokazuje HUD
Cze?? jako ?e ostatnio ucz? si? robi? co? w LUA, i og?lnie wykorzystywa? zasoby, postanowi?em zrobi? zrobi? sobie ma?e co nieco

No i tutaj wychodz? do was z pytaniem, jak zrobi? aby by? sam panel logowania bez widocznych w prawym g?rnym rogu ekranu Element?w i oczywi?cie w lewym dolnym rogu Radaru.

Tak wygl?da to z mojej perspektywy.

8. Podwójnie myje, zabiera pieniądze oraz pokazuje notyfikacje
Witam ot?? mam problem z myjn? wszystko robi podw?jnie

client
[lua]
-- Myjnia pojazd?w.
createBlip(-2279.03, -175.91, 35.32, 55,2,0,0,0,0,0,275) -- TWORZYMY BLIP
local missionText=createElement("text")
setElementData(missionText, "name", "MyjnianKoszt: 50PLN")
setElementPosition(missionText, -2279.03, -175.91, 35.32+0.8)

shader = dxCreateShader( "tekstura.fx" )
local marker = createMarker ( -2279.03, -175.91, 35.32-0.5, "cylinder", 3, 0, 255, 0, 0 )

function myjnia (hitPlayer, matchingDimension)
local veh = getPlayerOccupiedVehicle ( hitPlayer )
if ( veh ) then
setElementData(hitPlayer, "umyjdupe", true)
engineApplyShaderToWorldTexture( shader, "vehiclegrunge256", veh )
engineApplyShaderToWorldTexture( shader, "?emap*", veh )
triggerServerEvent ("onserver", hitPlayer, onserver)
local ef = createEffect ( "waterfall_end", -2277.64, -175.72, 35.32, -0.00, 0.00, 271.51, 100, true )
local ef2 = createEffect ( "waterfall_end", -2281.13, -175.61, 34.73, 0.00, -0.00, 269.25, 100, true )
--
setTimer(function()
destroyElement(ef)
destroyElement(ef2)
end, 3000, 1)
end
end
addEventHandler("onClientMarkerHit", marker, myjnia)
[/lua]

server
[lua]
function onserver ()
takePlayerMoney (source, 50 )
fadeCamera ( source, false, 2.5, 0, 0, 0...
9. Tabik nie pokazuje koloru gracza
Siema,
Pobra?em sobie tabik, wszystko dzia?a lecz nie pokazuje kolor?w gracza tylko tzw system szesnastkowy #fffff oraz nick potem, jak to zapobiec dodam ?e zrobione jest to dxdrawem oraz zmienn?
10. Hud z neta pokazuje się w panelu logowania
Dobry,
Jak zrobi? by hud z neta nie pojawia? si? w panelu logowania tylko dopiero jak gracz si? zrespi ju? np. na spawnie?

(te bia?e kwadraty s? do zakrycia bo nie chce pokazywa? panelu xd)

https://imgur.com/a/PlzGTvr

Kod z hudu:

[lua]
--[[
Autor kodu: Wercio.
Wykonane dla GTAO.PL
Zakaz zmiany autora!
]]

local sw,sh = guiGetScreenSize()
foNte3 = dxCreateFont("tf.ttf",20) or "defaul-bold"
foNte2 = dxCreateFont("tff.ttf",17) or "defaul-bold"
foNte1 = dxCreateFont("tff.ttf",26) or "defaul-bold"

addEventHandler("onClientRender", root, function()
if isPlayerMapVisible() then return end

showPlayerHudComponent("clock", false)
showPlayerHudComponent("health", false)
showPlayerHudComponent("money", false)
showPlayerHudComponent("armour", false)
showPlayerHudComponent("weapon", false)
showPlayerHudComponent("ammo", false)
showPlayerHudComponent("wanted",false)
showPlayerHudComponent("breath",false)

function roundedRectangle(x, y, w, h, color)
dxDrawRectangle(x, y, w, h, color, false)
dxDrawRectangle(x + 2, y - 1, w - 4, 1, color, false)
dxDrawRectangle(x + 2, y + h, w - 4, 1, color, false)
dxDrawRectangle(x - 1, y + 2, 1, h - 4, color, false)
dxDrawRectangle(x + w, y + 2, 1, h - 4, color, false)
end

local nick = getPlayerName(getLocalPlayer()):gsub("#%...
11. nie otwiera gui i nie pokazuje blipa
Witam mam pewien problem robi? sobie gui lecz jest problem one w og?le si? nie otwiera

[lua]
marker = {
{369.75, -2043.86, 7.67},
{848.63, -1822.13, 12.19},
{-1567.03, -2735.30, 48.54},
{-2328.49, -1618.51, 483.71},
{-1945.10, -1084.70, 30.78},
{-2524.29, -604.01, 132.56},
{-2793.32, -380.37, 7.04},
{-2354.25, -154.45, 35.32},
{-2769.76, 229.40, 7.06},
{-2208.21, 639.76, 49.44},
{-1790.54, 1428.62, 7.19},
{-2512.31, 1205.41, 37.42},
{-2261.07, 2287.73, 4.82},
{-1267.02, 2708.03, 50.07},
{-926.00, 2026.48, 60.91},
{-366.77, 1129.84, 19.76},
{2144.14, 2808.86, 10.82},
{2444.98, 2290.26, 10.82},
{1722.32, 2105.34, 10.82},
{2206.28, 1514.67, 10.82},
{2461.04, 1158.96, 10.82},
{1542.48, 1033.90, 10.82},
{1098.74, 1450.08, 12.55},
{1500.63, 773.24, 10.82},
{1288.60, 342.65, 19.55},
{1925.90, 174.90, 37.28},
}


GUIEditor = {
gridlist = {},
window = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(424, 275, 888, 475, "Towary", false)
guiWindowSetSizable(GUIEditor.window[1], false)

GUIEditor.gridlist[1] = guiCreateGridList(10, 20, 855, 341, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.2)
guiGridListAddColumn(GUIEditor.gridlist[1], "Nazwa Towaru", 0.2)
guiGridListAddColumn(GUIEditor.gridlist[1], "Wyn...
12. Nie pokazuje pojazdów w przecho
Witam, mam problem z przechowywalnia mianowicie gdy oddaje pojazd do przecho wszystko dzia?a lecz jak chce go odebra? to w panelu nic si? nie pokazuje.

[img]https://zapodaj.net/3688d84d5f222.png.html[/img]

Nie wiem jaka jest tego przyczyna kombinowa?em ju? na ka?dy spos?b, w debugscript 3 nie ma ?adnych b??d?w. Ma kto? pomys? jak to naprawi??

Client
[lua]

local marker=createMarker(-2059.8466796875, 469.9189453125, 35.17-1.20, "cylinder", 2, 50,255,250,50)
local sphere=createColSphere(-2048.19, 467.72, 35.17, 6)

local t=createElement("text")
setElementData(t,"scale",1.5)
setElementData(t,"name","Odbi?r pojazd?w")
setElementPosition(t,-2059.8466796875, 469.9189453125, 35.17)

local wm={}
wm.window=guiCreateWindow(0.25, 0.26, 0.51, 0.42, "Odbieranie pojazd?w", true)
guiWindowSetSizable(wm.window, false)
guiWindowSetMovable(wm.window, false)
guiSetVisible(wm.window, false)
wm.gridlist=guiCreateGridList(0.04, 0.09, 0.92, 0.65, true, wm.window)
guiGridListAddColumn(wm.gridlist, "ID", 0.4)
guiGridListAddColumn(wm.gridlist, "Model", 0.6)
wm.submit=guiCreateButton(0.04, 0.76, 0.47, 0.19, "Wyjmij pojazd", true, wm.window)
wm.close=guiCreateButton(0.57, 0.75, 0.39, 0.20, "Zamknij", true, wm.window)

addEvent("onParkingGetVehicles", true)
addEventHandler("onParkingGetVehicles", root, function(result)
guiGridListClear(wm.gridlist)
...
13. Wszystko działa, ale i tak pokazuje warning w debugu.
Witam, ot?? przychodz? sobie z takim problemem i? robi?c kodzik, wszystko ?adnie ?miga, ale jest ma?y problem.

Chodzi mi o usuwanie pojazdu, gdy? zrobi?em co? takiego:


local veh 
createVehicle(id,x,y,z,x,y,z)


I gdy po zako?czeniu czynno?ci chc? aby usun?? pojazd u?ywam:


destroyElement
(veh)


I wszystko ?adnie usuwa, ale w debugu pokazuje, ?e jest to z?y argument.
Za pomoc stawiam :piwo: !
14. Pokazuje przy włączaniu animke przy wyłączniu nie
Witam, ot?? wykorzystuj? pewn? animacje, po kilku sekundach, gui si? w??cza(powoli, na spokojnie alpha si? podwy?sza), aczkolwiek gdy chcemy wy??czy?, to ju? tej animacji nie ma.

        local a 
interpolateBetween(0,0,200,200,0,255,((getTickCount()-tick)/2600),"Linear"

dxDrawText(licr,574*w321*h774*w354*h,  tocolor(255255255a), 1.00czcionka"center""center"falsefalsefalsefalsefalse)


[ Dodano: 2018-10-06, 17:04 ]
Pomo?e kto??
15. dxDrawImage pokazuje się na sekunde
Witam mam pewien problem ot?? pr?buje zrobi? sobie skrypt na prace ale po wej?ciu w marker pojawia si? obrazek na dos?ownie mniej ni? sekund?. Prosz? o pomoc

local sxsy guiGetScreenSize();
local zoom 1920/sx;

local rozpocznij createMarker(-242.44921875, -236.50097656252.4296875-1"cylinder"1.0150150150255)
local blip_rozpocznij createBlipAttachedTo(rozpocznij46)
local status false;

addEventHandler("onClientMarkerHit"getRootElement(),
    function(
plr)
        if 
source == rozpocznij then else return end
            
if getElementTypeplr ) == "player" then else return end
                
if plr == getLocalPlayer() then else return end
                    
if isElementWithinMarker plrrozpocznij then else return end
                        dxDrawImage
(sx/300/zoomsy 900/zoom500/zoom500/zoom"images/window.png")
                    
end
                
)
16. Nie pokazuje się licznik jak rozpoczynam tą prace
Witam mam problem jak wsiadam to pojazdu nie pokazuje si? licznik za pomoc postawie :piwo:

Client:
[lua]destinationMarker = nil
destBlip = nil
reloadMarker = createMarker(1361.59,-1658.41,12.33, "cylinder", 5.0, 255, 0, 0, 130)
local Blip = createBlip(1361.59,-1658.41,13.38, 52)
local text = createElement("text")
setElementData(text, "name", "Praca dorywczanGĂłrnik")
setElementPosition(text, 1361.59, -1658.41, 12.33)

unloadingPos = {
{1678.28,-1652.64,13.54},
{1694.05,-1520.45,13.55},
{1973.20,-1708.96,15.97},
{2072.35,-1731.97,13.55},
{2070.75,-1654.92,13.55},
{2101.90,-1805.95,13.55},
}

function endOfWork()
if destinationMarker and isElement(destinationMarker) then
destroyElement(destinationMarker)
destinationMarker = nil
end
if destBlip and isElement(destBlip) then
destroyElement(destBlip)
destBlip = nil
end
end


function takeFurniture(he, md, plr)
if he ~= localPlayer then return end
if not getPedOccupiedVehicle(he) then return end

local car = getPedOccupiedVehicle(he)

if getElementData(car, "pojazd_opis") == "Dostawca Gazu - Firma GAZOL" then
if getElementData(he, "zaladowany") == false then
setElementFrozen(car,true)
outputChatBox("* Ladujesz Butle z gazem na pake. Prosze Czekac!", 255, 255, 255)
setTimer(function()
setElementData(car, "pojazd_opis", "Dostawca Gazu - Firma GAZOL")
...
17. Gui pokazuje sie dla wszystkich
Witam mam taki problem, ?e gui pokazuje si? dla wszystkich. kod jest po stronie clienta kod:
[lua]teoriaAPokaz = false
teoriaBPokaz = false
teoriaCPokaz = false
local screenW, screenH = guiGetScreenSize()

local teoriaA = createMarker (2489.12, -1686.21, 51.95-1, "cylinder", 1.5, 255, 255, 255, 150)
setElementInterior(teoriaA, 1)
local textA = createElement("text")
setElementData(textA, "name", "Cz??? teoretyczna prawa jazdy kat.A")
setElementPosition(textA, 2489.12, -1686.21, 51.95)
setElementInterior(textA, 1)

local teoriaB = createMarker (2471.55, -1676.93, 51.95-1, "cylinder", 1.5, 255, 255, 255, 150)
setElementInterior(teoriaB, 1)
local textB = createElement("text")
setElementData(textB, "name", "Cz??? teoretyczna prawa jazdy kat.B")
setElementPosition(textB, 2471.55, -1676.93, 51.95)
setElementInterior(textB, 1)

local teoriaC = createMarker (2499.44, -1672.87, 51.95-1, "cylinder", 1.5, 255, 255, 255, 150)
setElementInterior(teoriaC, 1)
local textC = createElement("text")
setElementData(textC, "name", "Cz??? teoretyczna prawa jazdy kat.C")
setElementPosition(textC, 2499.44, -1672.87, 51.95)
setElementInterior(textC, 1)

addEventHandler("onClientMarkerLeave", teoriaA, function(plr)
if teoriaAPokaz == true then
teoriaAPokaz = false
removeEventHandler("onClientRender", root, teoriaAGui)
end
end)

ad...
18. nie pokazuje sie gui
witam pr?buj? odbugowa? paczke stories rpg i mam taki problem i? gdy? nie pojawia mi sie gui jak chce wystawic auto na gielde gdy auto jest zniszczone i wjade w market to jest napisane ze auto jest uszkodzone a jesli auto nie jest uszkodzone i wszystko jest okej gdy wje?d?am w marker nic sie nie pokazuje 0 reakcji tu macie kod


[quote]
local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
local w,h=(screenW/1680), (screenH/1050)
local font=dxCreateFont("f.ttf", 11)
local font2=dxCreateFont("f.ttf", 12)
local font3=dxCreateFont("f.ttf", 14)
local img=dxCreateTexture("i/sale.png")


function mysz(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 pokapoka=false

function gui()
dxDrawImage(645*w, 293*h, 384*w, 451*h, "i/bggielda.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)


dxDrawText("Wpisz cene za jak? ma by? wystawiony tw?j pojazd.", 664*w, 368*h, 1013*w, 480*h, tocolor(255, 255, 255, 255), 1.00*w, font, "center", "center", false, false, false, false, false)


dxDrawImage(755*w, 688*h, 161*w, 46*h, "i/btn.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
...
19. Dlaczego jak rozpoczynam prace to kazdemu pokazuje sie c
Witam nie wiem dlaczego ale rozpoczynam prace i ka?demu kto jest na serwerze pokazuje sie c na minimapie za pomoc daje :piwo:
20. Nick nad głową nie pokazuje ITS
[lua]--[[
@author: Its Your World
@resource: iyw_gui/main_c.lua
@license: ProIT-web.pl, 2016,2017/...

Pierwotnym w?a?cicielem poni?szego kodu jest firma ProIT-web.pl. ©
Zakazuje si? edytowania lub u?ywania ca?ego lub fragment?w kodu z tego zasobu bez pisemnej zgody firmy b?dzie skutkowa?o skierowaniem wniosku do s?du w
my?l naruszenia ustawy dotycz?cej praw autorskich o kt?rych mowa w ustawie z dnia 4 lutego 1994r. o prawie autorskim i prawach pokrewnych.
]]

local utils = {nametagFont = setFont("archivo_narrow", 19), location = setFont("sign_painter", 38)}
local screenSize = Vector2(guiGetScreenSize())
local timer = false

addEventHandler("onClientMinimize", root, function()
localPlayer:setData("player:minimalized", getTickCount())
localPlayer:setData("player:tick", getTickCount())
timer = Timer(function() localPlayer:setData("player:tick", getTickCount()) end, 1000, 0)
end)

addEventHandler("onClientRestore", root, function()
localPlayer:setData("player:minimalized", false)
if timer and timer.valid then timer:destroy() end
end)

addEventHandler("onClientRender", root, function()
if not isPlayerMapVisible() and not localPlayer:getData("player:hud_visible") then
local position = {getElementPosition(localPlayer)}
local city = getZoneName(position[1], position[2], position[3], t...
21. nie pokazuje ceny
wgra?em salon na m?j serw przerobiony przezemnie i nie ma cen na autach ale jak wejde do srodka to pisze ./kupteraz prosz? o pomoc z g?ry dziekuje
22. Nie pokazuje serwera na liście serwerów.
Nie pokazuje serwera na liscie publicznej. Serwer mam na serverproject i mam zaznaczon? opcje pokazuje na liscie!
23. Gui się nie pokazuje
witam robie ammunation shop i chcia?em zrobi? marker z gui i nie pokazuje mi gui po wej?ciu w marker

C_SIDE

[lua]

pracaPanelGUI = false

function pracaGUI()

dxDrawRectangle(498, 207, 415, 403, tocolor(0, 0, 0, 200), false)
-- dxDrawImage(524, 320, 389, 285, ":guied/images/AK47.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawText("AK-47 CENA 5000 PLN", 497, 207, 913, 296, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "center", false, false, false, false, false)


end


addEventHandler("onClientClick", root, function(btn,state)
if btn=="left" and state=="down" then
if not pracaPanelGUI then return end
if Mysz(x, y, x, y) then
outputChatBox("Rozpocz??e? prac?")
ukryjGUI(localPlayer)
end
end
end)

addEventHandler("onClientClick", root, function(btn,state)
if btn=="left" and state=="down" then
if Mysz(x, y, x, y) then
showCursor(false)
removeEventHandler("onClientRender",root,pracaGUI)
end
end
end)

function pokazGUI(plr)
if plr ~= localPlayer then return end
addEventHandler("onClientRender",root,pracaGUI)
showCursor(true,true)
pracaPanelGUI = true
end
addEvent("pracaPanelGUI:pokaz",true)
addEventHandler("pracaPanelGUI:pokaz",root,p...
24. Nie pokazuje td
Witam. Wie kto? co jest w tym kondzie nie tak, ?e td nie pokazuje? Kod si? wykonuje bo wrzuci?em printa i wysy?a info w konsoli ale td si? nie pokazuje:

Kod:


format(query,sizeof query,"~w~----");
TextDrawSetString(oltd1[playerid],query);
25. GUI się nie pokazuje
M?j problem polega na tym, ?e nie przechodzi mi na stron? clienta.
w server-side robi? tak:
function playerJoin()
    
triggerClientEvent(source"openLoginGUI"sourcetrue)
    
outputChatBox("dolaczyl"source) -- testowe
end
addEventHandler
("onPlayerJoin"getRootElement(), playerJoin)


a w client-side robi? tak:
function loginGUI(screen)
    if (
screen == truethen
        guiSetVisible
(GUIEdior.window[1], true)
        
showCursor(true)
        
fadeCamera(true)
        
guiSetInputEnabled(false)
    
end
end
addEvent
("openLoginGUI"true)
addEventHandler("openLoginGUI"resourceRootloginGUI)

Oczywi?cie w cliencie wy?ej mam tworzenie GUI.
I dlaczego to GUI si? nie pokazuje? Dzi?ki z g?ry za pomoc
26. Nie pokazuje td
Witam. Mam taki problem z td. Chodzi o to, ?e czasami ich nie pokazuje. Oto kod:
[code]
forward Bonus(playerid);
public Bonus(playerid)
{


for(new i=0; i <= GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && GetPVarInt(i,"zalogowany") == 1)
{
SetTimer("bonus1", 600000, false);
//TextDrawHideForPlayer(i, bonustd);
TextDrawShowForPlayer(i, bonustd1);
}
}


return 1;

}
forward bonus1(playerid);
public bonus1(playerid)
{


for(new i=0; i <= GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && GetPVarInt(i,"zalogowany") == 1)
{
SetTimer("bonus2", 600000, false);
TextDrawHideForPlayer(i, bonustd);
TextDrawHideForPlayer(i, bonustd1);
TextDrawShowForPlayer(i, bonustd2);
}
}


return 1;

}
forward bonus2(playerid);
public bonus2(playerid)
{


for(new i=0; i <= GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && GetPVarInt(i,"zalogowany") == 1)
{
SetTimer("bonus3", 600000, false);
TextDrawHideForPlayer(i, bonustd);
TextDrawHideForPlayer(i, bonustd2);
TextDrawShowForPlayer(i, bonustd3);
}
}


return 1;

}
forward bonus3(playerid);
public bonus3(playerid)
{


for(new i=0; i <= GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && GetPVarInt(i,"zalogowany") == 1)
...
27. HUD w ktorym nie pokazuje kasy
Siemka . Przerobi?em pod wzgl?dem graficznym hud z lifeline i po zrobieniu prac dorywczych oraz zarabianiu nie pokazuje zarobionych $$ . Jakie? pomys?y ?
28. Nie pokazuje wartości
Witam. Po wpisaniu komendy qwe zamiast pokazywa? liczb? np. 8 pokazuje liczbe 0.

Kod:

CMD:qwe(playerid,params[])
{
new vehicleid = GetPlayerVehicleID(playerid);
new string[100];
format(string,sizeof string,"%d ",VehicleInfo[Vehicleid][Opony]);
SendClientMessage(playerid, Niebieski, string);
return 1;
}


Ustawianie liczby w VehicleInfo[Vehicleid][Opony]:
Kod:

if(VehicleInfo[vehid][Oponyp] >= 20.00)
{
VehicleInfo[vehid][Opony] = 8;
new buffer[300];
new vehicleidd = GetPlayerVehicleID(playerid);
format(buffer,sizeof buffer,"UPDATE `vehicles` SET `Opony`='8' WHERE id='%d'",VehicleInfo[vehicleidd][UID]);
mysql_query(buffer);
}


W MySQL jak co? dobrze ustawia. Prosz? o pomoc.
29. Nie dziala tuner nic sie nie pokazuje
Witajcie nie dziala mi tuner po wejsciu w marker nic sie nie pokazuje brak db3

[code]--[[
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.
]]

local jobs={
["tuner-sf"]={
code="tuner-sf",
desc="Praca Tunera",
desc2="",
positionMarker={-2270.89,-149.22,35},
text="* Nie jeste? zatrudniony(a) jako tuner w tym warsztacie.",
cuboid={-2297.40,-158.27,34.5, 44, 55.75, 6.5},
maxEmployees=2,
},
}

for i,v in pairs(jobs) do
local marker=createMarker(v.positionMarker[1], v.positionMarker[2], v.positionMarker[3]-0.90, "cylinder", 1.2, 78, 255, 0, 155)
setElementDimension(marker, v.positionMarker[5] or 0)
setElementInterior(marker, v.positionMarker[4] or 0)
setElementData(marker,"m:duty",v.code or 0)
local cs= createColCuboid(v.cuboid[1],v.cuboid[2],v.cuboid[3],v.cuboid[4],v.cuboid[5],v.cuboid[6])
setElementData(cs,"m:duty",v.code)
addEventHandler ( "onColShapeLeave", cs, function(el,md)
if getElementData(el,"player:duty") == getElementData(source,"m:duty") then
setElementData(el,"player:duty",false)
outputChatBox("Wyszed?e? poza teren Tunera.", el)
local skin=getElementData(el,"player:skin")
setElement...
30. Pierwszy panel logowania - nie pokazuje się
Witam. Robi?em m?j pierwszy w ?yciu panel logowania :>. Oskryptowa?em go tak jak potrafi?em (nie wiem czy jest co? potrzebnego jeszcze) ale po starcie skryptu panel si? nie pokazuje. Tak samo nie ma ?adnego b??du w db3. Za pomoc daj? :piwo:

C-side:

[lua]GUIEditor = {
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
okno_logowania = guiCreateWindow(603, 292, 413, 387, "One Life RPG", false)
guiWindowSetSizable(okno_logowania, false)

edit_login = guiCreateEdit(66, 56, 285, 45, "", false, okno_logowania)
edit_haslo = guiCreateEdit(65, 132, 286, 45, "", false, okno_logowania)
guiEditSetMasked(edit_haslo, true)
button_rejestracja = guiCreateButton(65, 220, 286, 65, "Zarejestruj", false, okno_logowania)
button_logowanie = guiCreateButton(66, 312, 285, 61, "Zaloguj", false, okno_logowania)
label1 = guiCreateLabel(12, 68, 43, 19, "LOGIN:", false, okno_logowania)
guiSetFont(label1, "default-bold-small")
label2 = guiCreateLabel(10, 148, 46, 19, "HAS?O:", false, okno_logowania)
guiSetFont(label2, "default-bold-small")
guiSetVisible (okno_logowania, false)
end
)

function pokaz_okno (el)
if el ~= localPlayer then return end
guiSetVisible (okno_logowania, true)
showCursor (true, false)
end
...
31. Okno pokazuje się każdemu
Siema. Mam taki problem ot?? okno z kupnem jedzenia pokazuje si? ka?demu, kto wejdzie w marker. Wiecie o co chodzi?? Za pomoc dam :piwo:

Kod:

kod usun?lem ze wzgl?du na brak ch?ci udost?pniania kodu


A i jeszcze dodam, ?e w pierwszym oknie nie dzia?a ostatni przycisk :)
32. Nie pokazuje tablic z bazy w gui
Mam lekko zmodyfikowany system prywatnych pojazd?w od PanaPrezesa :p .. gdy wystawiam ofert? sprzeda?y pojazdu nie wy?wietlaj? si? jego dane ani dane sprzedaj?cego.

function createGUIKupnoUzywanego()
    if 
not guiku then
    guiku 
= {}
    
    
guiku[1] = guiCreateWindow((sX 300)/2, (sY 150)/2300150"Oferta kupna pojazdu"false)
    
guiku[2] = guiCreateLabel(102528060"Gracz <nick> zaproponowa? Ci kupno pojazdu prywatnego <nazwa> o przebiegu <przebieg> km za <cena>$."falseguiku[1])
    
guiLabelSetHorizontalAlign(guiku[2], "center"true)
    
guiku[3] = guiCreateButton(101108030"Odrzu?"falseguiku[1])
    
guiku[4] = guiCreateButton(2101108030"Kup"falseguiku[1])
    
    
addEventHandler("onClientGUIClick"guiku[3], onOfertaKupnaOdrzucfalse)
    
addEventHandler("onClientGUIClick"guiku[4], onOfertaKupnaKupfalse)
    
end
guiSetVisible
(guiku[1], true)
showCursor(true)
end

addEvent
("pokazOferteKupnaPojazdu"true)
addEventHandler("pokazOferteKupnaPojazdu"getRootElement(),
function(
gracznazwacenaprzebieg)
createGUIKupnoUzywanego()
guiSetText(guiku[2], "Gracz "..getPlayerName(gracz).." zaproponowa? Ci kupno pojazdu prywatnego "..nazwa.." o przebiegu "..przebieg.." km za "..cena.."$.")
end)


Z g?ry dzi?kuje za pomoc :)
33. Problem z pracą Taxi ( By Shuffle ) . Nie pokazuje Taxówek.
Witam, mam problem z prac? by Shuffle (taxi)

Chodzi o to ze nie respi mi tych tax?wek .

Kod:

[lua]








local allow_vehs={
[420]=true,
}

local vehs={
{1779.7333984375, -1931.029296875, 13.521888732911},
{1784.7333984375, -1931.029296875, 13.521001266479},
{1791.7333984375, -1931.029296875, 13.521606445312},
{1797.7333984375, -1931.029296875, 13.521175384521},
{1803.7333984375, -1931.029296875, 13.521175384521},
}

taxi={}

for k,v in ipairs(vehs)do
taxi[k]=createVehicle(420,v[1],v[2],v[3])
setElementRotation ( taxi[k], 0, 0, 89.538452148438 )
setElementData(taxi[k],"vehicle:taxi",true)
end

addEventHandler("onPlayerVehicleEnter",root,function(veh,seat)
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Taxi")) then
if seat==0 then
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
outputChatBox("*Zacz??es prac?. Dostaniesz informacj? o po?o?eniu klienta po wezwaniu us?ugi.",source,255,255,255)
setElementData(source,"player:taxi",true)
end
end
end
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
setElementData(source,"taxi",false)
end
end
end
end)
if allow_vehs[getElementModel...
34. Nie pokazuje mi % zapełnienia. :)
Witam, mam problem z pewnym skryptem, mianowicie chodzi o to ze nie pokazuje mi % zape?nienia, pomo?e kto? to naprawi??
Kody:


-server
[lua]
local jobMarker
local jobVehicle
local jobOdbieranie = createMarker(1323.5300292969,1472.5004882813,10.8203125-1, "cylinder", 6, 0, 0, 255)


local positionTrash = {
{346.6647644043,2539.1455078125,16.75606918335},
{-1280.5670166016,-73.867202758789,14.1484375},
{1985.8670654297,-2395.0385742188,13.546875},
{1336.6829833984,1454.7218017578,10.8203125},
}

function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end
if jobBlip and isElement(jobBlip) then
destroyElement(jobBlip)
jobBlip = nil
end
end

function hideNextPoint(el, md)
if el ~= localPlayer or not md then return end
if not getPedOccupiedVehicle(el) then return end
local pojazd = getPedOccupiedVehicle(el)
if not getElementData(pojazd, "pojazd_smieci") then setElementData(pojazd, "pojazd_smieci", 0) end

if getElementData(pojazd, "pojazd_smieci") > 100 then
outputChatBox("* Posiadasz 100% Towar?w Wro? Do Lotniska LV Aby Roz?adowa?.")
return
end

local smieci = getElementData(pojazd, "pojazd_smieci") + math.random(25, 35)

finishJob()
showNextPoint()
playSoundFrontEnd(12)
setElementData(pojazd, "...
35. Tabelka "score" nie pokazuje liczby
Tak jak powy?ej, mam skrypt na towary jednak nie wiadomo ile gracz ma score poniewa? tabelka nie wy?wietla ?ADNEJ liczby.
36. FullDm - nie pokazuje informacji o banie/kicku
Witam mam problem z map? fulldm kiedy daje komu? bana to ja widz? ze kogo? zbanowa?em a gracze i osoba zbanowana tego nie widzi. Potrzebuje pomocy :|
37. [DM] Animacja nie pokazuje się innym graczom
Witam, mam pewien, zdawa?oby si?, prosty problem.
Tak jak wspomnia?em w temacie, gdy wpisuj? komend? animacja pozornie odbywa si?, lecz ?aden inny gracz jej nie widzi (skin stoi nieruchomo jak gdyby nigdy nic). Pr?bowa?em ju? wszystkiego i szczerze m?wi?c brakuje mi pomys??w... zwracam si? wi?c z pro?b? o pomoc.

Kod:

ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,0,0,0,4500,0);
38. [INNE] Nie pokazuje serwa w zakładce internet
Niby wszystko fajnie dzia?a ale zauwa?y?em ?e nie pokazuje serwera w zak?adce internet wpisywa?em w map i mode nazwe mojego serwa i nic nie pokazalo :(