PHP Code:
frags[0], deaths[0]
0 Length Arrays ?
You dont need to make them arrays.
Secondly
get_user_team doesnt work like this.Again no need of making it an array
PHP Code:
public function(id)
{
new team = get_user_team(id)
//make a switch statement to check what it returns and Then store the value in variable.
//get_user_team(id) == 1 //ts
//get_user_team(id) == 2 //ct
//get_user_team(id) == 3 // spec
//get_user_team(id) == 0 // unnasigned
}
Thirdly
PHP Code:
get_user_frags(frags)
get_user_deaths(deaths)
Wrong

Correct way is
PHP Code:
get_user_frags(id)
get_user_deaths(id)
Correct These First and Revert Back.
Edit :
http://forums.alliedmods.net/showthread.php?p=372646
You can use this as well.
__________________