I am currently working on a simple money-mod plugin, and I am using set_hudmessage and show_hudmessage to show how much money the person has. I have successfully setup how to display the money when it is givin to the player, but it is in a decimal and the decimal places values are huge.
What I mean is, in the show_hudmessage, when it draws it's like, "Current amount of money: 5.000000"
I am just trying to get it so it just shows the "5" instead of the ".000000" after it...
Any ideas how I would go about doing this?
Here is how I'm doing the code...
Code:
public display(id){
set_hudmessage(255,255,255,0.015,0.015,0,6.0,999999.0,0.0,0.0,2);
show_hudmessage(id,"Current amount of money: %f",money[id]);
return 1;
}
I am defining money as a float also...
Code:
new Float:money[33] = 0
So that could be a problem....