error 008: must be a constant expression; assumed zero
#1

pawn Код:
else if{PlayerInfo[playerid][pFlyTut] = 1 && IsAFAAPlane(vehicleid))
            {
                SendClientMessageEx(playerid, COLOR_ALLDEPT,"You have entered a FAA Tutorial Plane, Please keep your speed and keep to the markers!");
            }
The top line ? Giving me an error
Reply
#2

Код:
else if{PlayerInfo[playerid][pFlyTut] = 1 && IsAFAAPlane(vehicleid))
What the fuck is that there for? That is most certainly NOT a parenthese.

Correct:

pawn Код:
else if(PlayerInfo[playerid][pFlyTut] = 1 && IsAFAAPlane(vehicleid))
Reply
#3

Quote:
Originally Posted by ShawnMiller1337
Посмотреть сообщение
pawn Код:
else if{PlayerInfo[playerid][pFlyTut] = 1 && IsAFAAPlane(vehicleid))
            {
                SendClientMessageEx(playerid, COLOR_ALLDEPT,"You have entered a FAA Tutorial Plane, Please keep your speed and keep to the markers!");
            }
The top line ? Giving me an error
Quote:
Originally Posted by Kindred
Посмотреть сообщение
Код:
else if{PlayerInfo[playerid][pFlyTut] = 1 && IsAFAAPlane(vehicleid))
What the fuck is that there for? That is most certainly NOT a parenthese.

Correct:

pawn Код:
else if(PlayerInfo[playerid][pFlyTut] = 1 && IsAFAAPlane(vehicleid))
Both wrong! Usage of "=" in "if" declarations must be like this:
pawn Код:
else if(PlayerInfo[playerid][pFlyTut] == 1 && IsAFAAPlane(vehicleid))
And yea, replace "{" with "("!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)