function MathRoundInteger takes integer i_number, integer i_round returns integer

set i_number = i_number - ModuloInteger( i_number , i_round )
return i_number


i_number - Number to round

i_round - Number to round by


//The following will display a plain white message containing 120 to all players

call DisplayTextToForce( GetPlayersAll( ) , I2S( MathRoundInteger( 128, 10 ) ) )

Drasnian 21:12, 2 July 2008 (UTC)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.