Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-11-11, 00:06


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Witam tak jak w temacie robie frakcje gui i cos mi nie pyka, mam db3 :D

local frakcjamarker createMarker(-2013.81,761.32,44.60"cylinder"525111,25,25)

sfpd  guiCreateButton(39132315848"SFPD"false)
sfmc  guiCreateButton(55932315848"SFMC"false)
sffd  guiCreateButton(72732315848"SFFD"false)
wyloguj  guiCreateButton(55938115848"Wyloguj si?"false)

guiSetVisible(sfpdfalse)
guiSetVisible(sfmcfalse)
guiSetVisible(sffdfalse)
guiSetVisible(wylogujfalse)

function dxPokaz()
        dxDrawLine(381 1437895437tocolor(35656208), 1false)
        dxDrawLine(895437895297 1tocolor(35656208), 1false)
        dxDrawRectangle(381297514140tocolor(343129208), false)
        dxDrawLine(381 1437895437tocolor(000255), 1false)
        dxDrawLine(895437895297 1tocolor(000255), 1false)
        dxDrawRectangle(381297514140tocolor(343129208), false)
end

addEventHandler("onClientMarkerLeave"frakcjamarker, function(elmd)
    if el ~= localPlayer then return end
    if guiGetVisible(sfpd)  == true then
        guiSetVisible(sfpdfalse)
        guiSetVisible(sfmcfalse)
        guiSetVisible(sffdfalse)
        guiSetVisible(wylogujfalse)
        showCursor(false)
        removeEventHandler('onClientRender'rootdxPokaz)
    end
end)

addEventHandler('onClientMarkerHit'frakcjamarker, function()
            guiSetVisible(sffdtrue)
            guiSetVisible(sfmctrue)
            guiSetVisible(sfpdtrue)
            guiSetVisible(wylogujtrue)
            showCursor(true)
            addEventHandler("onClientRender"rootdxPokaz)
end)


DB3 :

4 linijka : attempt to call global "guiCreateButton" (a nil value)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 09:06


TheTroll

Pan Majster






Wiek: 38
Na forum: 4764 dni
Posty: 219
Nick w MP: TheTroll

Piwa: 1114

Respekt: 120
Respekt: 120

W mecie masz pewnie ustawion? stron? serwera a powinna by? klienta ;)

Postaw piwo autorowi tego posta
 

 
Tagi: frakcje :: gui
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Frakcje gui Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku