20.05.2011, 19:21
instead of
and
do this:
and
so write "==" in a conditional instead of "=" because with '=' you assign a value, and with '==' you check whether the two values are the same.
Quote:
if(gTeam[playerid] = TEAM_SWAT) //on this line |
Quote:
else if(gTeam[playerid] = TEAM_ARMY) //and this one |
Quote:
if(gTeam[playerid] == TEAM_SWAT) //on this line |
Quote:
else if(gTeam[playerid] == TEAM_ARMY) //and this one |