Fixed a compiler error: i -> playerid.