right now im working on a hidden mod request from Gangsta Bear and i need some help,
when i compile i get lots of undefined symbol "id" errors
this is the part of code i get the errors on:
Code:
public StartRound() {
new team
cs_get_user_team(id)
new players
get_playersnum(0)
new iPlayers[32], iNum
get_players( iPlayers, iNum )
if (HiddenCount == 0 && players >= 3) {
id = iPlayers[ random_num(0, iNum-1) ]
Hidden[id] = true
HiddenCount++
return PLUGIN_CONTINUE
} else if (Hidden[id] == true && team == 1) {
cs_set_user_team(id, CS_TEAM_CT, CS_CT_GIGN)
return PLUGIN_CONTINUE
} else if (IRIS[id] == true && team == 2){
cs_set_user_team(id, CS_TEAM_T, CS_T_ARCTIC)
return PLUGIN_CONTINUE
}
}
if anyone can help me tell me what to change and why so i will learn to next time