Skip to main content
GameDev.net gamedev.net
🔒 Locked

Half-life mod help

Started by gavco98 Sep 4, 2000 at 4:54 PM 2 replies 500+ views
Original Post
gavco98
gavco98
Im making a multiplayer MOD for half-life, and I have entered the following code to display a menu system, sort of like in Counter-Strike, but VC++ keeps complaining about missing '')'' before ;, but there isnt one, as far as I can see. if(pPlayer->menu == TeamSelect) { pPlayer->team = slot; char text[500] = ""; sprintf(text,"Select a Team:\n1: Cops\n2: Gangsters\n"); ShowMenu(pPlayer,3,0,0,text); pPlayer->menu = ModelSelect; } else (pPlayer->menu == ModelSelect) { pPlayer->modelnr = slot; pPlayer->menu = 0; } It finds this on the line containing the if and the else statement, what is wrong? G Coates ------------------------------------------- Software is like sex: better when its free!
Gavin Coates
[size="1"]IT Engineer / Web Developer / Aviation Consultant
[size="1"][ Taxiway Alpha ] [ Personal Home Page ]
Esap1
Esap1
Check the file that this was included from, and then check all the related source files. Oh, and check the Header files,
gavco98
gavco98
I dont think there is any problem at all with the code, its just VC++ bitching. I have a screenshot, showing the compile errors and the area of code affected, leave your email address and ill send it to u.

G Coates
-------------------------------------------
Software is like sex: better when its free!
Gavin Coates
[size="1"]IT Engineer / Web Developer / Aviation Consultant
[size="1"][ Taxiway Alpha ] [ Personal Home Page ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.