15.01.2013, 18:22
As this function is supposed to return a float number, it should be like this:
pawn Код:
stock Float:abs(Float:val)
{
if(val < 0.0)
{
val = val * (-1.0);
}
return val;
}