Talk:Creating Teams: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Put forth an answer)
mNo edit summary
Line 12: Line 12:


if I comment out the code thats from the tutorial it compiles without error.--[[User:Jadepanther|Jadepanther]] 06:41, 10 Feb 2007 (PST)
if I comment out the code thats from the tutorial it compiles without error.--[[User:Jadepanther|Jadepanther]] 06:41, 10 Feb 2007 (PST)
:See this note-
:See this-
:<code>TEAM_COMBINE</code> and <code>TEAM_REBELS</code> should '''NOT''' be defined here unless you are modding a from-scratch Source SDK. Here we are modding a deathmatch SDK, so the two teams have already been defined in an enum in hl2mpgamerules.h
:''<code>TEAM_COMBINE</code> and <code>TEAM_REBELS</code> should '''NOT''' be defined here unless you are modding a from-scratch Source SDK. Here we are modding a deathmatch SDK, so the two teams have already been defined in an enum in hl2mpgamerules.h''
:
:
:If you're making a multiplayer mod, shouldn't you be using the deathmatch sdk? --[[User:Daedalus|Daedalus]] 21:18, 10 Feb 2007 (PST)
:If you're making a multiplayer mod, shouldn't you be using the deathmatch sdk? --[[User:Daedalus|Daedalus]] 21:18, 10 Feb 2007 (PST)

Revision as of 22:19, 10 February 2007

I get these error when compiling player.cpp

player.cpp

.\player.cpp(5673) : error C2065: 'TEAM_COMBINE' : undeclared identifier .\player.cpp(5673) : error C2227: left of '->GetNumPlayers' must point to class/struct/union/generic type .\player.cpp(5673) : error C2065: 'TEAM_REBELS' : undeclared identifier .\player.cpp(5673) : error C2227: left of '->GetNumPlayers' must point to class/struct/union/generic type Creating browse information file...


if I comment out the code thats from the tutorial it compiles without error.--Jadepanther 06:41, 10 Feb 2007 (PST)

See this-
TEAM_COMBINE and TEAM_REBELS should NOT be defined here unless you are modding a from-scratch Source SDK. Here we are modding a deathmatch SDK, so the two teams have already been defined in an enum in hl2mpgamerules.h
If you're making a multiplayer mod, shouldn't you be using the deathmatch sdk? --Daedalus 21:18, 10 Feb 2007 (PST)