//don't do anything if you join your own team
if ( team == GetTeamNumber() )
return true;
//auto assign if you join team 0
if ( team == 0 )
{
if ( g_Teams[TEAM_COMBINE]->GetNumPlayers() > g_Teams[TEAM_REBELS]->GetNumPlayers() )
team = TEAM_REBELS;
else
team = TEAM_COMBINE;
}
if ( !IsDead() )
{
if ( GetTeamNumber() != TEAM_UNASSIGNED )
{
CommitSuicide();
IncrementFragCount(1); //adds 1 frag to balance out the 1 subtracted for killing yourself
}
}
ChangeTeam( team );
return true;
}
I get 7 errors from it found bellow
1>.\player.cpp(5612) : error C2065: 'args' : undeclared identifier
1>.\player.cpp(5612) : error C2228: left of '.ArgC' must have class/struct/union
1> type is ''unknown-type''
1>.\player.cpp(5615) : error C2228: left of '.Arg' must have class/struct/union
1> type is ''unknown-type''
1>.\player.cpp(5624) : error C2065: 'TEAM_COMBINE' : undeclared identifier
1>.\player.cpp(5624) : error C2227: left of '->GetNumPlayers' must point to class/struct/union/generic type
1>.\player.cpp(5624) : error C2065: 'TEAM_REBELS' : undeclared identifier
1>.\player.cpp(5624) : error C2227: left of '->GetNumPlayers' must point to class/struct/union/generic type
None Found
Assess Thread
This feature is unavailable because the page is locked
Stamps
No stamps recorded
StampIt
Is this thread particularly good or bad in one or more areas? Stamp it! This feature is unavailable because the page is locked