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

Wysłany: 2017-02-10, 12:07


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

Witam mam malutki problem bo mam Gie?de i Mam 2 Edit i w 1 Wpisuje Cene np. 1000 A w 2 Tune np. MK1,2,3 to Cena sie normalnie wpisuje ale Tune Jak wpisuje litery to nie dzala a jak pisze cyfry to dzala


addEventHandler("onClientGUIClick"resourceRoot, function()
    local cena=tonumber(guiGetText(wme))
    local Tune=tonumber(guiGetText(wmes))
    local veh=getPedOccupiedVehicle(localPlayer)
    if not veh then return end
    if getVehicleController(veh) ~= localPlayer then return end
    if source == wmsubmit then
        local desc=string.format("**Gie?da**\nPojazd: %s\nCena: %d PLN\nPrzebieg: %dkm\nSprzedaj?cy: %s\n Tuning: %s"getVehicleName(veh), tonumber(cena), getElementData(veh,"vehicle:mileage"), getPlayerName(localPlayer), tonumber(Tune))
        setElementData(veh,"vehicle:desc",desc)
        guiSetVisible(wmsfalse)
        showCursor(false)
    end
end)


Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-10, 12:34


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

mixLoLmix2,


addEventHandler("onClientGUIClick"resourceRoot, function()
    local cena=tonumber(guiGetText(wme))
    local Tune=tostring(guiGetText(wmes))
    local veh=getPedOccupiedVehicle(localPlayer)
    if not veh then return end
    if getVehicleController(veh) ~= localPlayer then return end
    if source == wmsubmit then
        local desc=string.format("**Gie?da**\nPojazd: %s\nCena: %d PLN\nPrzebieg: %dkm\nSprzedaj?cy: %s\n Tuning: %s"getVehicleName(veh), tonumber(cena), getElementData(veh,"vehicle:mileage"), getPlayerName(localPlayer), tostring(Tune))
        setElementData(veh,"vehicle:desc",desc)
        guiSetVisible(wmsfalse)
        showCursor(false)
    end
end)




Postaw piwo autorowi tego posta
 

 
Tagi: giełda
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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