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: 33
Na forum: 4535 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

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 ( gracz, powod, czas, rodzaj )
    if timer then
        resetTimer ( timer )
    end
    gracz1 = gracz
    rodzaj1 = rodzaj
    czas1 = czas
    powod1 = powod
    event = addEventHandler ( "onClientRender", root, function()
        timer = setTimer ( removeEventHandler, 5000, 1, "onClientRender", root, event )
        dxDrawRectangle(1*width, 186*height, 263*width, 115*height, tocolor(0, 0, 0, 255), true)
        dxDrawRectangle(0*width, 185*height, 263*width, 115*height, tocolor(206, 4, 23, 255), true)
        dxDrawText("Gracz : "..gracz.."", 17*width, 202*height, 245*width, 238*height, tocolor(0, 0, 0, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Gracz : "..gracz.."", 16*width, 201*height, 244*width, 237*height, tocolor(255, 255, 255, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Czas :"..czas, 17*width, 228*height, 245*width, 264*height, tocolor(0, 0, 0, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Czas : "..czas, 16*width, 227*height, 244*width, 263*height, tocolor(255, 255, 255, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Pow?d : "..powod, 17*width, 255*height, 245*width, 291*height, tocolor(0, 0, 0, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Pow?d : "..powod, 16*width, 254*height, 244*width, 290*height, tocolor(255, 255, 255, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 68*width, 166*height, 193*width, 202*height, tocolor(0, 0, 0, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 68*width, 164*height, 193*width, 200*height, tocolor(0, 0, 0, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 66*width, 166*height, 191*width, 202*height, tocolor(0, 0, 0, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 66*width, 164*height, 191*width, 200*height, tocolor(0, 0, 0, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 67*width, 165*height, 192*width, 201*height, tocolor(255, 255, 255, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
    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: 6859 dni
Posty: 567

Piwa: 17560

Respekt: 160
Respekt: 160Respekt: 160

Mo?e tak spr?buj to zrobi?:

function showGui ( gracz, powod, czas, rodzaj )
    if timer then
        resetTimer ( timer )
    end
    gracz1 = gracz
    rodzaj1 = rodzaj
    czas1 = czas
    powod1 = powod
    
    function lolxd()
        dxDrawRectangle(1*width, 186*height, 263*width, 115*height, tocolor(0, 0, 0, 255), true)
        dxDrawRectangle(0*width, 185*height, 263*width, 115*height, tocolor(206, 4, 23, 255), true)
        dxDrawText("Gracz : "..gracz.."", 17*width, 202*height, 245*width, 238*height, tocolor(0, 0, 0, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Gracz : "..gracz.."", 16*width, 201*height, 244*width, 237*height, tocolor(255, 255, 255, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Czas :"..czas, 17*width, 228*height, 245*width, 264*height, tocolor(0, 0, 0, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Czas : "..czas, 16*width, 227*height, 244*width, 263*height, tocolor(255, 255, 255, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Pow?d : "..powod, 17*width, 255*height, 245*width, 291*height, tocolor(0, 0, 0, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText("Pow?d : "..powod, 16*width, 254*height, 244*width, 290*height, tocolor(255, 255, 255, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 68*width, 166*height, 193*width, 202*height, tocolor(0, 0, 0, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 68*width, 164*height, 193*width, 200*height, tocolor(0, 0, 0, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 66*width, 166*height, 191*width, 202*height, tocolor(0, 0, 0, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 66*width, 164*height, 191*width, 200*height, tocolor(0, 0, 0, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
        dxDrawText(rodzaj, 67*width, 165*height, 192*width, 201*height, tocolor(255, 255, 255, 255), 1.00*width, "pricedown", "center", "center", false, false, true, false, false)
    end
    
    addEventHandler ( "onClientRender", root, lolxd )
    timer = setTimer ( removeEventHandler, 5000, 1, "onClientRender", root, lolxd )
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 » removeEventHandler - pomysły? 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