23.07.2015, 09:42
pawn Код:
new Float:val1 = 33.123, val2;
val2 = val1;
printf("val2 = %i", val2); // val2 = 33
pawn Код:
native operator=(Float:oper) = floatround;
pawn Код:
new Float:val1 = 33.123, val2;
val2 = val1;
printf("val2 = %i", val2); // val2 = 33
pawn Код:
new Float:val1 = 33.123, val2;
val2 = floatround(val1);
printf("val2 = %i", val2); // val2 = 33