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

Wysłany: 2014-08-09, 02:09


kubak14







Wiek: 24
Na forum: 5205 dni
Posty: 119
Nick w MP: Heavy

Piwa: 149

Respekt: 45,8

Ostrzeżeń: 20%
Witam, zrobi?em skrypt ale pokazuje w hp np 83.1231321313%
zamiast 83%
Kod:

    guiSetText labelHealth"Stan Auta: " .. getElementHealth (tvehicle) )
    if ( isVehicleDamageProof (tvehicle) == true then
        guiSetVisible(infinitetrue)
        guiSetText labelHealth"Stan Auta:   ")
    else
        guiSetVisible(infinitefalse)
        guiSetText labelHealth"Stan Auta: (" .. getElementHealth (tvehicle) / 10 .. "%)" )
    end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-09, 02:27


MeeShuffle

Programista/Grafik






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

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

guiSetText labelHealth"Stan Auta: " .. math.floor(getElementHealth (tvehicle)) )
    if ( isVehicleDamageProof (tvehicle) == true then
        guiSetVisible(infinitetrue)
        guiSetText labelHealth"Stan Auta:   ")
    else
        guiSetVisible(infinitefalse)
        guiSetText labelHealth"Stan Auta: (" .. math.floor(getElementHealth (tvehicle)) / 10 .. "%)" )
    end[


Podpis

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

 
Tagi: nie :: potrzebne :: cyfry
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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