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

Wysłany: 2017-03-18, 19:28


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

Mozna w tym skrypcie zrobic zeby jak wejdzie sie w marker pokazywalo sie tamto gui?
To jest server
local marker=createMarker(1453.52, -1748.4113.55'cylinder'1235155,0,250)
setElementDimension(marker0)
setElementInterior(marker0)

local t=createElement('text')
setElementData(t,'name','Zamowienie Samochodu')
setElementDimension(t0)
setElementInterior(t0)
setElementPosition(t,1453.52, -1748.4113.55)


    GUIEditor = {
    button = {},
    progressbar = {}
}
addEventHandler("onClientResourceStart"resourceRoot,
    function()
        GUIEditor.button[1] = guiCreateButton(474269458299""false)
        guiSetAlpha(GUIEditor.button[1], 0.67)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour""FF050000")

        GUIEditor.button[2] = guiCreateButton(17522110951"Zamow"falseGUIEditor.button[1])
        GUIEditor.progressbar[1] = guiCreateProgressBar(1658912921falseGUIEditor.button[1])
        GUIEditor.progressbar[2] = guiCreateProgressBar(16516312921falseGUIEditor.button[1])


        GUIEditor.button[3] = guiCreateButton(62224516828"Panel zamowien"false)
        guiSetAlpha(GUIEditor.button[3], 0.69)    
    end
)
  addEventHandler("onClientRender"resourceRoot
    function()
        dxDrawText(""655211655211tocolor(255255255255), 1.00"default""left""top"falsefalsefalsefalsefalse)
    end
  end
)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 19:35


amited







Wiek: 26
Na forum: 3714 dni
Posty: 1233
Nick w MP: Amited

Piwa: 512

Respekt: 466
Respekt: 466

gui i dxText s? obs?ugiwane tylko przez clienta

Podpis
"amited" napisał/a:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 19:52


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"amited" napisał/a:

gui i dxText s? obs?ugiwane tylko przez clienta

zmienilem na client i jest taki blad
 SCRIPT ERRORzamowienia-komisy-nsl/c.lua:35'=' expected near 'function'
[2017-03-18 19:56:02ERRORLoading script failedzamowienia-komisy-nsl/c.lua:35'=' expected near 'function'


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 19:53


amited







Wiek: 26
Na forum: 3714 dni
Posty: 1233
Nick w MP: Amited

Piwa: 512

Respekt: 466
Respekt: 466

daj tutaj sw?j client side

Podpis
"amited" napisał/a:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 20:20


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

local marker=createMarker(1453.52, -1748.4113.55'cylinder'1235155,0,250)
setElementDimension(marker0)
setElementInterior(marker0)

local t=createElement('text')
setElementData(t,'name','Zamowienie Samochodu')
setElementDimension(t0)
setElementInterior(t0)
setElementPosition(t,1453.52, -1748.4113.55)


    GUIEditor = {
    button = {},
    progressbar = {}
}


addEventHandler("onClientResourceStart"resourceRoot,
    function()
        GUIEditor.button[1] = guiCreateButton(474269458299""false)
        guiSetAlpha(GUIEditor.button[1], 0.67)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour""FF050000")

        GUIEditor.button[2] = guiCreateButton(17522110951"Zamow"falseGUIEditor.button[1])
        GUIEditor.progressbar[1] = guiCreateProgressBar(1658912921falseGUIEditor.button[1])
        GUIEditor.progressbar[2] = guiCreateProgressBar(16516312921falseGUIEditor.button[1])


        GUIEditor.button[3] = guiCreateButton(62224516828"Panel zamowien"false)
        guiSetAlpha(GUIEditor.button[3], 0.69)    
    end
)
        

addEventHandler("onClientRender"root,
    function()
        dxDrawText(""655211655211tocolor(255255255255), 1.00"default""left""top"falsefalsefalsefalsefalse)
    end
)
function

addEventHandler("onClientMarkerHit"), function wlaczoknozamowienie


Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 20:22


R3fr3Sh







Wiek: 27
Na forum: 4800 dni
Posty: 70

Piwa: 60

Respekt: 150
Respekt: 150Respekt: 150


local marker=createMarker(1453.52, -1748.4113.55'cylinder'1235155,0,250)
setElementDimension(marker0)
setElementInterior(marker0)

local t=createElement('text')
setElementData(t,'name','Zamowienie Samochodu')
setElementDimension(t0)
setElementInterior(t0)
setElementPosition(t,1453.52, -1748.4113.55)


    GUIEditor = {
    button = {},
    progressbar = {}
}
local function setGuiState(bool)
    for k,v in ipairs(GUIEditor.button) do
        guiSetVisible(vbool)
    end
    for k,v in ipairs(GUIEditor.progressbar) do
        guiSetVisible(vbool)
    end
end

addEventHandler("onClientResourceStart"resourceRoot,
    function()
        GUIEditor.button[1] = guiCreateButton(474269458299""false)
        guiSetAlpha(GUIEditor.button[1], 0.67)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour""FF050000")

        GUIEditor.button[2] = guiCreateButton(17522110951"Zamow"falseGUIEditor.button[1])
        GUIEditor.progressbar[1] = guiCreateProgressBar(1658912921falseGUIEditor.button[1])
        GUIEditor.progressbar[2] = guiCreateProgressBar(16516312921falseGUIEditor.button[1])


        GUIEditor.button[3] = guiCreateButton(62224516828"Panel zamowien"false)
        guiSetAlpha(GUIEditor.button[3], 0.69)
        setGuiState(false)
    end
)


addEventHandler("onClientMarkerHit"marker, 
    function(plrmd)
        if plr ~= localPlayer or not md then
            return
        end
        setGuiState(true)
    end
)

addEventHandler("onClientMarkerLeave"marker, 
    function(plrmd)
        if plr ~= localPlayer or not md then
            return
        end
        setGuiState(false)
    end
)

addEventHandler("onClientRender"resourceRoot,
    function()
        dxDrawText(""655211655211tocolor(255255255255), 1.00"default""left""top"falsefalsefalsefalsefalse)
    end
)


Naprawi?em ci te? tego rendera, cho? nie wiem na co ci on.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 20:27


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"R3fr3Sh" napisał/a:


local marker=createMarker(1453.52, -1748.4113.55'cylinder'1235155,0,250)
setElementDimension(marker0)
setElementInterior(marker0)

local t=createElement('text')
setElementData(t,'name','Zamowienie Samochodu')
setElementDimension(t0)
setElementInterior(t0)
setElementPosition(t,1453.52, -1748.4113.55)


    GUIEditor = {
    button = {},
    progressbar = {}
}
local function setGuiState(bool)
    for k,v in ipairs(GUIEditor.button) do
        guiSetVisible(vbool)
    end
    for k,v in ipairs(GUIEditor.progressbar) do
        guiSetVisible(vbool)
    end
end

addEventHandler("onClientResourceStart"resourceRoot,
    function()
        GUIEditor.button[1] = guiCreateButton(474269458299""false)
        guiSetAlpha(GUIEditor.button[1], 0.67)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour""FF050000")

        GUIEditor.button[2] = guiCreateButton(17522110951"Zamow"falseGUIEditor.button[1])
        GUIEditor.progressbar[1] = guiCreateProgressBar(1658912921falseGUIEditor.button[1])
        GUIEditor.progressbar[2] = guiCreateProgressBar(16516312921falseGUIEditor.button[1])


        GUIEditor.button[3] = guiCreateButton(62224516828"Panel zamowien"false)
        guiSetAlpha(GUIEditor.button[3], 0.69)
        setGuiState(false)
    end
)


addEventHandler("onClientMarkerHit"marker, 
    function(plrmd)
        if plr ~= localPlayer or not md then
            return
        end
        setGuiState(true)
    end
)

addEventHandler("onClientMarkerLeave"marker, 
    function(plrmd)
        if plr ~= localPlayer or not md then
            return
        end
        setGuiState(false)
    end
)

addEventHandler("onClientRender"resourceRoot,
    function()
        dxDrawText(""655211655211tocolor(255255255255), 1.00"default""left""top"falsefalsefalsefalsefalse)
    end
)


Naprawi?em ci te? tego rendera, cho? nie wiem na co ci on.


Wchodze w marker nic sie nie wyswietla tak samo w db3

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 20:31


R3fr3Sh







Wiek: 27
Na forum: 4800 dni
Posty: 70

Piwa: 60

Respekt: 150
Respekt: 150Respekt: 150

Upewnij si? ?e tw?j plik znajduje si? w meta.xml
Kod:

<script src="nazwaskryptu.lua" type="client" />


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 20:34


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"R3fr3Sh" napisał/a:

Upewnij si? ?e tw?j plik znajduje si? w meta.xml
Kod:

<script src="nazwaskryptu.lua" type="client" />

ok dziala ale sie nie da tam pisac

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 20:43


R3fr3Sh







Wiek: 27
Na forum: 4800 dni
Posty: 70

Piwa: 60

Respekt: 150
Respekt: 150Respekt: 150


Więcej informacji znajdziesz w Wikipedii MTA:

https://wiki.multitheftauto.com/wiki/GuiCreateMemo


Więcej informacji znajdziesz w Wikipedii MTA:

https://wiki.multitheftauto.com/wiki/GuiCreateEdit

Polecam si? zapozna?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 20:45


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"R3fr3Sh" napisał/a:


Więcej informacji znajdziesz w Wikipedii MTA:

https://wiki.multitheftauto.com/wiki/GuiCreateMemo


Więcej informacji znajdziesz w Wikipedii MTA:

https://wiki.multitheftauto.com/wiki/GuiCreateEdit

Polecam si? zapozna?.


Juz dziala poniewaz dalem progres bara a nie tego do pisania
tylko czy mozna zrobic cos takiego zeby te dane ktore sie wpisze wysyalalo do bazy danych?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 20:54


R3fr3Sh







Wiek: 27
Na forum: 4800 dni
Posty: 70

Piwa: 60

Respekt: 150
Respekt: 150Respekt: 150

Mo?na, musisz przerzuca? te dane na stron? servera eventem i nast?pnie za pomoc? r??nych funkcji db je przes?a? do bazy

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 21:15


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"R3fr3Sh" napisał/a:

Mo?na, musisz przerzuca? te dane na stron? servera eventem i nast?pnie za pomoc? r??nych funkcji db je przes?a? do bazy


Tego to ja nie zrobie ucze sie lua

[ Dodano: 2017-03-18, 21:38 ]
Moglbys ktos to zrobic?

[ Dodano: 2017-03-18, 21:50 ]
zeby te dane exsportowaly sie do bazy danych
http://imgur.com/a/WAq7W

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 21:52


R3fr3Sh







Wiek: 27
Na forum: 4800 dni
Posty: 70

Piwa: 60

Respekt: 150
Respekt: 150Respekt: 150

To forum na kt?rym mo?na ci pom?c w istniej?cym problemie, a nie forum do robienia zlece?. Po drugie za ma?o danych jest podanych, nie wiadomo jaki zas?b u ciebie odpowiada za baz? i jak? funkcj? puszcza? kwerendy do niej. Nie wiemy jak wygl?da struktura tabeli oraz czy w og?le istnieje.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 22:25


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"R3fr3Sh" napisał/a:

To forum na kt?rym mo?na ci pom?c w istniej?cym problemie, a nie forum do robienia zlece?. Po drugie za ma?o danych jest podanych, nie wiadomo jaki zas?b u ciebie odpowiada za baz? i jak? funkcj? puszcza? kwerendy do niej. Nie wiemy jak wygl?da struktura tabeli oraz czy w og?le istnieje.


Zrobilbys to jakbym wszytsko podal ci na skype?

Postaw piwo autorowi tego posta
 

 
Tagi: skrypt
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Skrypt 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