Random team spawns need help :S
#2

instead of
Quote:

if(gTeam[playerid] = TEAM_SWAT) //on this line

and
Quote:

else if(gTeam[playerid] = TEAM_ARMY) //and this one

do this:
Quote:

if(gTeam[playerid] == TEAM_SWAT) //on this line

and
Quote:

else if(gTeam[playerid] == TEAM_ARMY) //and this one

so write "==" in a conditional instead of "=" because with '=' you assign a value, and with '==' you check whether the two values are the same.
Reply


Messages In This Thread
Random team spawns need help :S - by KbronX - 20.05.2011, 18:48
Re: Random team spawns need help :S - by KoczkaHUN - 20.05.2011, 19:21
Re: Random team spawns need help :S - by KoczkaHUN - 20.05.2011, 19:24
Re: Random team spawns need help :S - by KbronX - 20.05.2011, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)