#1

Well... I wanted to make my own function for absolute value and so I did... Now, the pawn compiler returned a warning saying:

Код:
F:\ZGM.pwn(169) : warning 213: tag mismatch
Line 169 is the line return val;
Here is the code:
Код:
#include <a_samp>
forward abs(Float:val);
public abs(Float:val)
{
	if(val < 0.0)
	{
	    val = val * (-1.0);
	}
	return val;
}
I wonder why?

Thanks
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: 1 Guest(s)