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

Wysłany: 2014-10-14, 14:50


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Panowie, jakie? pomys?y na zatrzymanie eventu onClientRender NONAME? Moje si? ju? wyczerpa?y. Nie chodzi mi o funkcj? zatrzymuj?c? tylko o budow? kodu.


function showGui graczpowodczasrodzaj )
    if timer then
        resetTimer timer )
    end
    gracz1 gracz
    rodzaj1 rodzaj
    czas1 czas
    powod1 powod
    event addEventHandler "onClientRender"root, function()
        timer setTimer removeEventHandler50001"onClientRender"rootevent )
        dxDrawRectangle(1*width186*height263*width115*heighttocolor(000255), true)
        dxDrawRectangle(0*width185*height263*width115*heighttocolor(206423255), true)
        dxDrawText("Gracz : "..gracz..""17*width202*height245*width238*heighttocolor(000255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Gracz : "..gracz..""16*width201*height244*width237*heighttocolor(255255255255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Czas :"..czas17*width228*height245*width264*heighttocolor(000255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Czas : "..czas16*width227*height244*width263*heighttocolor(255255255255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Pow?d : "..powod17*width255*height245*width291*heighttocolor(000255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Pow?d : "..powod16*width254*height244*width290*heighttocolor(255255255255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj68*width166*height193*width202*heighttocolor(000255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj68*width164*height193*width200*heighttocolor(000255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj66*width166*height191*width202*heighttocolor(000255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj66*width164*height191*width200*heighttocolor(000255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj67*width165*height192*width201*heighttocolor(255255255255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
    end)
end


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-14, 16:06


KukiX







Wiek: 34
Na forum: 6718 dni
Posty: 567

Piwa: 17560

Respekt: 160
Respekt: 160Respekt: 160

Mo?e tak spr?buj to zrobi?:

function showGui graczpowodczasrodzaj )
    if timer then
        resetTimer timer )
    end
    gracz1 gracz
    rodzaj1 rodzaj
    czas1 czas
    powod1 powod
    
    function lolxd()
        dxDrawRectangle(1*width186*height263*width115*heighttocolor(000255), true)
        dxDrawRectangle(0*width185*height263*width115*heighttocolor(206423255), true)
        dxDrawText("Gracz : "..gracz..""17*width202*height245*width238*heighttocolor(000255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Gracz : "..gracz..""16*width201*height244*width237*heighttocolor(255255255255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Czas :"..czas17*width228*height245*width264*heighttocolor(000255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Czas : "..czas16*width227*height244*width263*heighttocolor(255255255255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Pow?d : "..powod17*width255*height245*width291*heighttocolor(000255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText("Pow?d : "..powod16*width254*height244*width290*heighttocolor(255255255255), 0.70*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj68*width166*height193*width202*heighttocolor(000255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj68*width164*height193*width200*heighttocolor(000255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj66*width166*height191*width202*heighttocolor(000255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj66*width164*height191*width200*heighttocolor(000255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
        dxDrawText(rodzaj67*width165*height192*width201*heighttocolor(255255255255), 1.00*width"pricedown""center""center"falsefalsetruefalsefalse)
    end
    
    addEventHandler "onClientRender"rootlolxd )
    timer setTimer removeEventHandler50001"onClientRender"rootlolxd )
end


Podpis
Moje skrypty MTA:
¤PlayDM
¤Mini-Games v0.2
Postaw piwo autorowi tego posta
 

 
Tagi: removeeventhandler :: pomysły?
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