John6000
06-16-2007, 02:45 PM
My if statement keeps going into the first bit which means for some reason Q_strncasecmp( HL2MPRules()->MapName() , "tr_", 3) is always true even when I change to a map which does not have that prefix. Anyone have any ideas? thanks:D
if ( Q_strncasecmp( HL2MPRules()->MapName() , "tr_", 3) )
{
m_pWarmupLabel->SetText( "Training Course" );
}
else if ( Q_strncasecmp( HL2MPRules()->MapName() , "sp_", 3) )
{
m_pWarmupLabel->SetText( "Single Player" );
}
else if ( Q_strncasecmp( HL2MPRules()->MapName() , "vs_", 3) )
{
m_pWarmupLabel->SetText( "Humans Vs NPCS" );
}
else
{
m_pWarmupLabel->SetText( string1 );
}
if ( Q_strncasecmp( HL2MPRules()->MapName() , "tr_", 3) )
{
m_pWarmupLabel->SetText( "Training Course" );
}
else if ( Q_strncasecmp( HL2MPRules()->MapName() , "sp_", 3) )
{
m_pWarmupLabel->SetText( "Single Player" );
}
else if ( Q_strncasecmp( HL2MPRules()->MapName() , "vs_", 3) )
{
m_pWarmupLabel->SetText( "Humans Vs NPCS" );
}
else
{
m_pWarmupLabel->SetText( string1 );
}