02.04.2013, 15:47
For an array inside an enum (example would be pInfo) you'd have to do
PlayerInfo[playerid][pInfo][array];
So, for this you should try
PlayerInfo[playerid][pInfo][array];
So, for this you should try
pawn Код:
enum pInfo
{
kills[4],
deaths[4],
score[4],
// The rest of your pInfo enumerator.
}
new PlayerInfo[MAX_PLAYERS][pInfo];
// Insert this and edit where needed and appropriate.
if(PlayerInfo[playerid][pClass] == 0) { PlayerInfo[playerid][kills][0]++; } // And so on.