21.11.2018, 17:22
Thanks you guys for help
But I still don't understand how to build the code like you said
This is stupid for me
I used this from joe staff and Its worked fine if my exp was max even over 50-100 value
example : max exp is 250 then I set it to 300 or 350 after that they show me 100% and reset to 0%
The problem is when my exp around 10/50 20/50 and they are not showing the real value Its always 0%
But 50/50 is 100% work fine
My English's really bad too
But I still don't understand how to build the code like you said
This is stupid for me
I used this from joe staff and Its worked fine if my exp was max even over 50-100 value
example : max exp is 250 then I set it to 300 or 350 after that they show me 100% and reset to 0%
The problem is when my exp around 10/50 20/50 and they are not showing the real value Its always 0%
But 50/50 is 100% work fine
My English's really bad too
PHP код:
format(str, sizeof(str), "(%f.0%c)", float((Player[i][Exp]/exp_max)*100), '%');
PlayerTextDrawSetString(i, TDEditor_PTD[i][31], str);