Thread: ...
View Single Post
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 04-15-2022 , 15:59   Re: Percentage
Reply With Quote #2

Post your code, if you make the 1000 a variable it'd be better

PHP Code:
new Float:total 1000.0 // Total
new Float:cProgress 900.0 // Current progress, I am assigning numbers here just for example

new Float:cParam // calculation parameter

cParam = (cProgress total) * 100

client_print
(idprint_chat"You have passed %.0f%%%% from %f"cParamtotal// the %%%% is to print the % in chat 

Last edited by Moody92; 04-16-2022 at 05:27.
Moody92 is offline