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

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


ReadyKiller







Wiek: 27
Na forum: 3865 dni
Posty: 6
Nick w MP: ReadyKiller



Respekt: 50

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



main = {}
main.login = {}
main.register = {}
main.background = {}
main.login.tab guiCreateTab("Logowanie",main.background)
main.register.tab guiCreateTab("Rejestracja",main.background)

guiCreateLabel(25,20,300,30,"Nazwa u?ytkownika",false,main.login.tab)
guiCreateLabel(25,90,300,30,"Ha?o",false,main.login.tab)

main.login.edit = {
    guiCreateEdit(379*w206*h214*w32*h"",main.login.tab),
    guiCreateEdit(379*w296*h214*w32*h"",main.login.tab)
}

guiEditSetMasked(main.login.edit[2], true)
main.login.button guiCreateButtton(20,210,360,50,"Zaloguj",false,main.login.tab)

guiSetVisible(main.background,false)

addEventHandler("onClientResourceStart",root,
    function()
        guiSetVisible(main.backgroundtrue)
        setPlayerHudComponentVisible("all",false)
        showChat(false)
        showCursor(true)
        
    end
)


[00] restart: Requested by Console
[00] restart: Resource restarting...
[00] Stopping logowanie
[00] Starting logowanie
[00] ERROR: logowanie\cfile.lua:2: attempt to call global 'guiGetScreenSize' (a nil value)
[00] logowanie restarted successfully

Czekam na podpowiedzi.
:piwo: R*


Postaw piwo autorowi tego posta
 

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


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%
main.background = --guiCreateTabPanel(200150400300false)


Podpis



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

Postaw piwo autorowi tego posta
 

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


ReadyKiller







Wiek: 27
Na forum: 3865 dni
Posty: 6
Nick w MP: ReadyKiller



Respekt: 50

Dalej to samo. :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-08, 01:09


TheTroll

Pan Majster






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

Piwa: 1114

Respekt: 120
Respekt: 120

Sprawd? czy w mecie masz ustawion? stron? klienta.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-08, 01:22


ReadyKiller







Wiek: 27
Na forum: 3865 dni
Posty: 6
Nick w MP: ReadyKiller



Respekt: 50

nie pojawai buttona Zaloguj

local sw,sh guiGetScreenSize()

main = {}
main.login = {}
main.register = {}
main.background guiCreateTabPanel(sw 200,sh 150400300false)
main.login.tab guiCreateTab("Logowanie",main.background)
main.register.tab guiCreateTab("Rejestracja",main.background)

guiCreateLabel(25,20,300,30,"Nazwa u?ytkownika",false,main.login.tab)
guiCreateLabel(25,90,300,30,"Ha?o",false,main.login.tab)

main.login.edit = {
    guiCreateEdit(20,40,360,30,"",false,main.login.tab),
    guiCreateEdit(20,110,360,30,"",false,main.login.tab)
}

guiEditSetMasked(main.login.edit[2], true)
main.login.button guiCreateButtton(20,210,360,50,"Zaloguj",false,main.login.tab)

guiSetVisible(main.background,false)

addEventHandler("onClientResourceStart",root,
    function( )
        guiSetVisible(main.backgroundtrue)
        setPlayerHudComponentVisible("all",false)
        showChat(false)
        showCursor(true)
    end
)


Postaw piwo autorowi tego posta
 

 
Tagi: logowanie/rejestraca
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