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

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Oh interesting, thanks for posting. Perhaps you can help me solve these new errors with another function?

pawn Код:
forward bool:IsLEOVeh(val);
stock bool:IsLEOVeh(val) // line 301
{
    static s_iValArray[] =
        {
            1, -, 33, 24064
        };
    if (val > 601) // line 307
    {
        return true; // line 309
    }
    val -= 427;
    if (val < 0)
    {
        return true;
    }
    return !(s_iValArray[val >> 5] & (1 << (val & 0x1F)));
}
Here are the errors:

Код:
(301) : error 010: invalid function or declaration
(301 -- 307) : error 010: invalid function or declaration
(301 -- 309) : error 010: invalid function or declaration
(301 -- 309) : fatal error 107: too many error messages on one line
There's a negative sign without a number in your array initialization.


Edit: Also make sure the forward is atop your script before any callbacks/functions that use the "IsLEOVeh" function. Its not a good idea to put it right about the function (defeats the purpose of a function prototype lol).
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: 3 Guest(s)