Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: procent
1. Procent zycia dxDrawText
Siema, mam problem gdy? napisa?em sobie napis z aktualnym stanem hp lecz po utraceniu hp pokazuje dok?adny stan czyli np. 98.9999827181.
Jak zrobi? aby pokazywa?o tylko 98% a nie takie dok?adne liczby.

m?j kod:

    dxDrawText
("Zdrowie: "..getElementHealth(localPlayer).."%", (screenW * 0.7420) + 1, (screenH * 0.2000) + 1, (screenW * 0.8477) + 1, (screenH * 0.0898) + 1, tocolor(0, 0, 0, 255), 1.3, wFont, "center", "center", false, false, false, false, false)
    
dxDrawText("Zdrowie: "..getElementHealth(localPlayer).."%", screenW * 0.7420, screenH * 0.2000, screenW * 0.8477, screenH * 0.0898, tocolor(220, 0, 0, 255), 1.3, wFont, "center", "center", false, false, false, false, false)