Quote:
Originally Posted by Emp`
Code:
public my_loop()
{
new players[MAX_PLAYERS], id
get_players(players, pnum)
for ( new i = 0; i < pnum; i++ )
{
id = players[i]
//you would want to put your stuff here
}
}
|
That code displayed these errors on compile...
Quote:
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(120) : error 017: undefined symbol "MAX_PLAYERS"
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(120) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(120 -- 121) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(121) : error 017: undefined symbol "players"
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(121) : fatal error 107: too many error messages on one line
|
@Mystic Death
Setting 0 to id gave me errors too.