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, 05:49


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

mojeW,mojeH 800600
sW,sH guiGetScreenSize()
w= (sW/mojeW), (sH/mojeH)

local sm = {}
sm.moov 0
sm.object1,sm.object2 nil,nil
 
local function removeCamHandler()
    if(sm.moov == 1)then
        sm.moov 0
    end
end
 
local function camRender()
    if (sm.moov == 1then
        local x1,y1,z1 getElementPosition(sm.object1)
        local x2,y2,z2 getElementPosition(sm.object2)
        setCameraMatrix(x1,y1,z1,x2,y2,z2)
    end
end
addEventHandler("onClientPreRender",root,camRender)
 
function smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,time)
    if(sm.moov == 1)then return false end
    sm.object1 createObject(1337,x1,y1,z1)
    sm.object2 createObject(1337,x1t,y1t,z1t)
    setElementAlpha(sm.object1,0)
    setElementAlpha(sm.object2,0)
    setObjectScale(sm.object1,0.01)
    setObjectScale(sm.object2,0.01)
    moveObject(sm.object1,time,x2,y2,z2,0,0,0,"InOutQuad")
    moveObject(sm.object2,time,x2t,y2t,z2t,0,0,0,"InOutQuad")
    sm.moov 1
    setTimer(removeCamHandler,time,1)
    setTimer(destroyElement,time,1,sm.object1)
    setTimer(destroyElement,time,1,sm.object2)
    return true
end

zaloguj guiCreateButton(379*w346*h210*w40*h"Zaloguj "false)

logowanielogin guiCreateEdit(379*w206*h214*w32*h""false)

logowaniehaslo guiCreateEdit(379*w296*h214*w32*h""false)


addEventHandler("onClientResourceStart",root,
    function( )
        guiSetVisible(zalogujtrue)
        guiSetVisible(logowanielogintrue)
        guiSetVisible(logowaniehaslotrue)
        setPlayerHudComponentVisible("all",false)
        showChat(false)
        showCursor(true)
        setCameraMatrix(1561.7541503906, -1373.93884277341000, -250001823.3835449219, -1820.555541992236, -999999, -999999, -1000070000 )
    end
)

addEventHandler("onClientGUIClick"zaloguj,
    function( )
    local Llogin guiGetText(logowanielogin)
    local Lhaslo guiGetText(logowaniehaslo)
        if Llogin ~= "" end Lhaslo ~= "" then
            triggerServerEvent("onPlayerTryToLogin",localPlayer,Llogin,Lhaslo)
        end
    end
)




addEvent("onPlayertryToLogin",true)

addEventHandler("onPlayertryToLogin",root,
    function
        outputChatBox(Llogin .. " " ...Lhaslo)
    end

Nie mam gui :( .

Postaw piwo autorowi tego posta
 

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


jg2aviva1

Rusek :D






Wiek: 25
Na forum: 4134 dni
Posty: 445
Nick w MP: _Wolfenstei[N]^.^

Piwa: 1033

Respekt: 240
Respekt: 240Respekt: 240

Ostrzeżeń: 60%
po co triggerem? Nie lepiej if'em ?eby sprawdza?o czy co? si? znajduje w editbox'ach?

Podpis



GTAO Member: 2015-08-23, 14:26

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 17:08


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

        if Llogin ~= "" end Lhaslo ~= "" then


Tutaj masz b??d

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 17:59


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

Ale jaki?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 18:02


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Vxen, przeanalizuj sobie t? funkcj?, masz j? wskazan?, nie musisz szuka? po ca?ym kodzie... Prosz? cie, je?eli przychodzisz tutaj z oczekiwaniem na gotowca, bez kiwni?cia palcem to zapomnij, co innego, je?eli chocia? w minimalnym stopniu si? postarasz...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 18:56


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

Taka podpowiedz :

jezeli Llogin jest rozne od niczego zako?cz jezeli Lhaslo jest rozne od niczego to :

:>

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 19:04


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

Wiem ju?. End na and i gitara.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 19:14


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Vxen, dok?adnie.

Teraz zinterpretuje to twoje, aby to bi?ej wyja?ni?, mo?e te? innym u?ytkownikom.


  if Llogin ~= "" end Lhaslo ~= "" then


Je?eli Llogin jest r??ne od niczego koniec, Lhaslo jest rozne od niczego wtedy

To nie ma sensu, co nie ?



Przer?b to na tak? zasad?:

Je?eli Llogin jest r??ne od niczego I Lhaslo jest r??ne od niczego wtedy

Czyli musisz dopisa? tam and zamiast tego end'a w ?rodk - mia?e? racj?, tym oto sposobem sam poprawi?e? sw?j kod, a nie otrzyma?e? gotowca i zawsze to jest taki ma?y lvl up w swojej wiedzy :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 19:22


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

:D Fajnie tylko ?e tek dalej si? pokazuje.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 19:24


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Vxen, dobra, a jakie? DB3 jest ? (/debugscript 3) Podczas uruchamiania skryptu albo podczas u?ywania

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 19:31


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

addEventHandler("onClientGUIClick"zaloguj,
    function( )
        if guiGetText(Llogin) ~= "" and guiGetText(Lhaslo) ~= "" then
            outputChatBox(Llogin .. "" .. Lhaslo)
        end
    end
)


linijka 63

 outputChatBox(Llogin .. "" .. Lhaslo)

I teraz jest zrobione tak ze to co jest wpisane ma si? pojawi? na czacie?

[ Dodano: 2015-11-11, 19:52 ]
function(Llogin,Lhaslo ) da?em i


Prawie ale dalej nie to xd.....

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 20:12


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Spr?buj:


addEventHandler("onClientGUIClick"zaloguj,
    function( )
        if guiGetText(Llogin) ~= "" and guiGetText(Lhaslo) ~= "" then
            outputChatBox(guiGetText(Llogin).. " " .. guiGetText(Lhaslo))
        end
    end
)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 20:17


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

Dzia?a ale zostaw otwarte.

[ Komentarz dodany przez: DestroY: 2015-11-11, 20:23 ]
Zg?o? post jak b?dzie do zamkni?cia.

[ Dodano: 2015-11-11, 20:31 ]
A jak chc? da? na stron? serwera to?



client

zaloguj guiCreateButton(379*w346*h210*w40*h"Zaloguj "false)

Llogin guiCreateEdit(379*w206*h214*w32*h""false)

Lhaslo guiCreateEdit(379*w296*h214*w32*h""false)


addEventHandler("onClientResourceStart",root,
    function( )
        guiSetVisible(zalogujtrue)
        guiSetVisible(Llogintrue)
        guiSetVisible(Lhaslotrue)
        setPlayerHudComponentVisible("all",false)
        --showChat(false)
        showCursor(true)
        setCameraMatrix(1561.7541503906, -1373.93884277341000, -250001823.3835449219, -1820.555541992236, -999999, -999999, -1000070000 )
    end
)

addEventHandler("onClientGUIClick"zaloguj,
    function( )
        if guiGetText(Llogin) ~= "" and guiGetText(Lhaslo) ~= "" then
           triggerServerEvent("onPlayerTryToLogin",localPlayerguiGetText(Llogin),guiGetText(Lhaslo))
           --outputChatBox(guiGetText(Llogin).. " " .. guiGetText(Lhaslo))
        end
    end
)


server

addEvent("onPlayertryToLogin",true)

addEventHandler("onPlayertryToLogin",root,
    function(LloginLhaslo)
        outputChatBox(guiGetText(Llogin) .. "" .. guiGetText(Lhaslo))
    end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 20:41


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Vxen, tak, powinno dzia?a?, uwzgl?dni?e? wszystko tzn login i has?o a gracza jako element znajdziesz pod zmienn? source.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-11, 20:52


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

Gdy klikam to nic si? nie pojawia a DB czyste.

Postaw piwo autorowi tego posta
 

 
Tagi: logowwanie.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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