31.05.2015, 17:37
It might be an invalid index but not -1. Change to:
pawn Код:
new factionid = APlayerData[playerid][Team];
if(!(0 <= factionid <= sizeof (Factions)))