You mean something like this?: if ( pPlayer && ToHL2MPPlayer(pPlayer)->GetPlayerLives()>= 0 ) playercountertotal++; if( pPlayer && ToHL2MPPlayer(pPlayer)->GetPlayerLives()>0) playercounter++;
Willem Engel wrote: > Have you looked at the actual values for the two counters? It could very > well be that the ToHL2MPPlayer() part fails, and therefore the amount of > "alive" players is incorrect. Maybe try putting the > "playercountertotal++;" in a conditional with ToHL2MPPlayer() too? > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders