PHP Code:
PrintToServer("Zoom: %d (100 - (%d / (%d-%d) * 100)", (100 - (g_iClientFov[client] / (MAX_ZOOM-MIN_ZOOM) *100)), g_iClientFov[client], MAX_ZOOM,MIN_ZOOM);
And the return
Code:
Zoom: 0 (100 - (90 / (110-30) * 100)
Zoom: 0 (100 - (88 / (110-30) * 100)
Zoom: 0 (100 - (86 / (110-30) * 100)
Zoom: 0 (100 - (84 / (110-30) * 100)
Zoom: 0 (100 - (82 / (110-30) * 100)
Zoom: 0 (100 - (80 / (110-30) * 100)
Zoom: 100 (100 - (78 / (110-30) * 100)
Zoom: 100 (100 - (76 / (110-30) * 100)
Zoom: 100 (100 - (74 / (110-30) * 100)
Zoom: 100 (100 - (72 / (110-30) * 100)
Ok stupid mistake, fixed it by using Float, and RoundToFloor instead to round it