I don't know what this warning means...
#1

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:

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)));
}
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).

Код:
(300) : warning 208: function with tag result used before definition, forcing reparse
Does anyone know what could be causing this warning?

EDIT: I found the answer a few more pages in so never mind!

Quote:
Originally Posted by ******
Посмотреть сообщение
Also, to fix the tag problem either forward the function or put the function above where it's used in the code.
Reply


Messages In This Thread
I don't know what this warning means... - by Scenario - 15.01.2012, 13:47
Re: I don't know what this warning means... - by Kyosaur - 15.01.2012, 14:01
Re: I don't know what this warning means... - by Kyosaur - 15.01.2012, 14:04
Re: I don't know what this warning means... - by Scenario - 15.01.2012, 14:11
Re: I don't know what this warning means... - by Kyosaur - 15.01.2012, 14:15
Re: I don't know what this warning means... - by Scenario - 15.01.2012, 14:16
Re: I don't know what this warning means... - by Kyosaur - 15.01.2012, 14:21
Re: I don't know what this warning means... - by Scenario - 15.01.2012, 14:24
Re: I don't know what this warning means... - by Scenario - 15.01.2012, 15:14
Re: I don't know what this warning means... - by Scenario - 15.01.2012, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)