Try
PHP Code:
//always do a debug check to see if your numbers are correct.
client_print( 0 , print_chat , "debug: %d %d" , get_nearest_marker(i) , gMarkerCount );
new Float:nearest = float( get_nearest_marker(i) );
new Float:totalmarkers = float( gMarkerCount );
new percent = floatround( (nearest / totalmarkers) * 100.0)[/b]
__________________