Can I use such arrays?
#8

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
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.
Reply


Messages In This Thread
Can I use such arrays? - by Darth1993 - 02.04.2013, 13:21
Re: Can I use such arrays? - by Konstantinos - 02.04.2013, 13:25
Re: Can I use such arrays? - by faff - 02.04.2013, 13:25
Re: Can I use such arrays? - by Darth1993 - 02.04.2013, 13:31
Re: Can I use such arrays? - by faff - 02.04.2013, 13:32
Re: Can I use such arrays? - by Darth1993 - 02.04.2013, 13:34
Re: Can I use such arrays? - by Pottus - 02.04.2013, 14:00
Re: Can I use such arrays? - by glbracer - 02.04.2013, 15:47

Forum Jump:


Users browsing this thread: 2 Guest(s)