15.01.2012, 13:47
Okay, so I was going through the Useful Functions topic when I came across this post from ******. I used this script (mentioned in ******'s post) to generate the following code:
I thought it was fine, but I receive the following warning. I have commented line 300 in the code above (you'll need to know this).
Does anyone know what could be causing this warning?
EDIT: I found the answer a few more pages in so never mind!
pawn Код:
stock bool:IsAMotorcycle(val) // line 300
{
static
s_iValArray[] =
{
9494529, 1610612738, 3584, 1056
};
if (val > 586)
{
return true;
}
val -= 448;
if (val < 0)
{
return true;
}
return !(s_iValArray[val >> 5] & (1 << (val & 0x1F)));
}
Код:
(300) : warning 208: function with tag result used before definition, forcing reparse
EDIT: I found the answer a few more pages in so never mind!