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

Wysłany: 2016-02-13, 22:12


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

addEventHandler("onPlayerLogin",getRootElement(),
    function (source)
        local konto getPlayerAccount(source )
            if not getAccountData(konto,"plec") == or getAccountData(konto,"plec") == 1 then
            triggerClientEvent(source,"wybierzplec",root)
            return end
    end
)

addEvent("pkobieta",true)
addEvent("pmezczyzna",true)

addEventHandler("pmezczyzna",root,
    function (source)
        local konto getPlayerAccountsource )
        setAccountData(konto,"plec",1)
        setElementModel(source0)
    end
)

addEventHandler("pkobieta",root,
    function (source)
        local konto getPlayerAccountsource )
        setAccountData(konto,"plec",0)
        setElementModel(source69)
    end
)


Cos mi account nie dziala wyswietla w debugu z kazdym getPlayerAccount albo getAccountData ze zly argument 1

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-02-13, 22:18


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

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

Ostrzeżeń: 60%
BlackTen, usu? z nawias?w source, jak nie zadzia?a pokaz triggery z clienta.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-02-13, 22:31


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

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

onPlayerLogin przyjmuje inne argumenty, dotycz?ce kont, poczytaj o tym evencie na wiki.


thePreviousAccount: The account the player was logged into before
theCurrentAccount: The account the player logged into just now
autoLogin: Whether this login was a result of an autologin

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
 

 
Tagi: account
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