0

I am getting an expected primary-expression before '=' token, how can I fix this?

void vldtmv()
{
    if ( brd[opx][opy].cont[1]=='H' )
    {
        if ( ( npx - opx !== 2 && -2 || npy - opy !== 1 && -1 ) && (npx-opx !== 1 && -1 || npy-opy !== 2 && -2) )
        {
            type=1;
        }
    }
}
3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by frogboy77
2

don't really get your code as i'm a total noob but

if ( ( npx - opx !== 2 && -2 || npy - opy !== 1 && -1 ) && (npx-opx !== 1 && -1 || npy-opy !== 2 && -2) )

should these !== not be just != ?
may be completely wrong though.

Votes + Comments
awesomeness
you are right :)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.