Error :
Quote:
\amxmodx\scripting\remaining.sma(83) : error 017:
undefined symbol "id"
|
PHP Code:
public ShowMessage( ) {
new iPlayers[ 32 ], iNum[ TEAMS ];
//get_players( iPlayers, iNum[ TE ], "ae", "TERRORIST" );
get_players( iPlayers, iNum[ CT ], "ae", "CT" );
if( iNum[ TE ] > 0 || iNum[ CT ] > 0 ) {
new iCvars[ CVARS ];
iCvars[ RED ] = get_pcvar_num( g_pCvars[ RED ] );
iCvars[ GREEN ] = get_pcvar_num( g_pCvars[ GREEN ] );
iCvars[ BLUE ] = get_pcvar_num( g_pCvars[ BLUE ] );
iCvars[ LOCATION ] = get_pcvar_num( g_pCvars[ LOCATION ] );
if( iCvars[ LOCATION ] > sizeof( g_flCoords ) - 1 ) {
set_pcvar_num( g_pCvars[ LOCATION ], 1 );
iCvars[ LOCATION ] = 1;
}
set_hudmessage( iCvars[ RED ], iCvars[ GREEN ], iCvars[ BLUE ],
g_flCoords[ iCvars[ LOCATION ] ][ 0 ], g_flCoords[ iCvars[ LOCATION ] ][ 1 ], 0, HUD_STAY, HUD_STAY, 0.0, 0.0, 3 );
//show_hudmessage( 0, "Players Remaining^nTE: %i^nCT: %i", iNum[ TE ], iNum[ CT ] );
new CsTeams:iTeam = cs_get_user_team(id);
if (iTeam == CS_TEAM_T)
{
show_hudmessage(0, "Counter-Terrorists Remaining: %i", iNum[ CT ] );
}
}
}
}