hey,
i wanted to make a mini team balancer and i got following errors

:
PHP Code:
new g_msg_teaminfo
new const g_teaminfo[][] =
{
"UNASSIGNED",
"TERRORIST",
"CT",
"SPECTATOR"
}
register_logevent("round_end", 2, "1=Round_End")
g_msg_teaminfo = get_user_msgid("TeamInfo")
public round_end()
{
set_task(0.1, "task_balanceteam", 375)
}
public task_balanceteam()
{
static players[3][32], count[3]
get_players(players[CS_TEAM_UNASSIGNED], count[CS_TEAM_UNASSIGNED])
count[CS_TEAM_T] = 0
count[CS_TEAM_CT] = 0
static i, id, team
for(i = 0; i < count[CS_TEAM_UNASSIGNED]; i++)
{
id = players[CS_TEAM_UNASSIGNED][i]
team = fm_get_user_team(id)
if(team == CS_TEAM_T || team == CS_TEAM_CT)
players[team][count[team]++] = id
}
if(abs(count[CS_TEAM_T] - count[CS_TEAM_CT]) <= 1)
return
static maxplayers
maxplayers = (count[CS_TEAM_T] + count[CS_TEAM_CT]) / 2
if(count[CS_TEAM_T] > maxplayers)
{
for(i = 0; i < (count[CS_TEAM_T] - maxplayers); i++)
fm_set_user_team(players[CS_TEAM_T][i], CS_TEAM_CT, 0)
}
else
{
for(i = 0; i < (count[CS_TEAM_CT] - maxplayers); i++)
fm_set_user_team(players[CS_TEAM_CT][i], CS_TEAM_T, 0)
}
}
stock fm_set_user_team(index, team, update = 1)
{
set_pdata_int(index, OFFSET_TEAM, team)
if(update)
{
emessage_begin(MSG_ALL, g_msg_teaminfo)
ewrite_byte(index)
ewrite_string(g_teaminfo[team])
emessage_end()
}
return 1
}
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Warning: Loose indentation on line 3310
Warning: Tag mismatch on line 3310
Warning: Tag mismatch on line 3310
Warning: Loose indentation on line 3312
Warning: Tag mismatch on line 3312
Warning: Tag mismatch on line 3313
Warning: Tag mismatch on line 3316
Warning: Tag mismatch on line 3318
Warning: Tag mismatch on line 3321
Warning: Tag mismatch on line 3321
Warning: Tag mismatch on line 3325
Warning: Tag mismatch on line 3325
Warning: Tag mismatch on line 3329
Warning: Tag mismatch on line 3329
Warning: Tag mismatch on line 3331
Warning: Tag mismatch on line 3333
Warning: Tag mismatch on line 3334
Warning: Tag mismatch on line 3334
Warning: Tag mismatch on line 3338
Warning: Tag mismatch on line 3339
Warning: Tag mismatch on line 3339
Header size: 1716 bytes
Code size: 9356 bytes
Data size: 3812 bytes
Stack/heap size: 16384 bytes; estimated max. usage=780 cells (3120 bytes)
Total requirements: 31268 bytes
21 Warnings.
Done.
know anyone why its so?
__________________