Original Post
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!