Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Imi arata in procentaj doar ca scrie: ex: 13.1521%

iar eu as dori sa arate doar 13%


New Float:catlasuta, Float:levelamount, expamount;

catlasuta = expamount/levelamount*100;

format(tstr, sizeof(tstr), "%f%", catlasuta); 
 PlayerTextDrawSetString(i, galhud_Player[i][4], tstr);

Cum pot face sa arate 13% / 14% nu cu 14.2424%

 

3 answers to this question

Recommended Posts

  • 0
Posted
Acum 3 minute, custura a spus:

Imi arata in procentaj doar ca scrie: ex: 13.1521%

iar eu as dori sa arate doar 13%



New Float:catlasuta, Float:levelamount, expamount;

catlasuta = expamount/levelamount*100;

format(tstr, sizeof(tstr), "%f%", catlasuta); 
 PlayerTextDrawSetString(i, galhud_Player[i][4], tstr);

Cum pot face sa arate 13% / 14% nu cu 14.2424%

 

fa variabilele de tip int

  • 0
Posted
Acum 10 minute, Mister a spus:

format(tstr, sizeof(tstr), "%.0f%%", catlasuta); 
 PlayerTextDrawSetString(i, galhud_Player[i][4], tstr); 

Ty, work

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.