#2

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;
}
Reply


Messages In This Thread
abs - by Zeyo - 15.01.2013, 18:19
Re: abs - by [KHK]Khalid - 15.01.2013, 18:22
Re: abs - by Zeyo - 15.01.2013, 18:26

Forum Jump:


Users browsing this thread: 2 Guest(s)