Problem with Iterators
#4

Your indexing is wack dude, seems to me you are overly thinking your problem with a dash of using the wrong kind of data usage.

You shouldn't need an iterator at all here it is pretty bad that people are giving you poor solutions to make your system design even worse.

Код:
enum JOBDATA
{
   e_CurrJob,
   e_Jobs[MAX_JOBS],
   bool:e_InJob[MAX_JOBS],
}

static g_JobData[MAX_PLAYERS][JOBDATA];
Then just reference the data by playerid example.

Код:
if(g_JobData[playerid][e_InJob][g_JobData[playerid][e_CurrJob]])
{

}
Reply


Messages In This Thread
Problem with Iterators - by RedGun2015 - 09.09.2017, 00:40
Re: Problem with Iterators - by Eoussama - 09.09.2017, 00:42
Re: Problem with Iterators - by RedGun2015 - 09.09.2017, 00:43
Re: Problem with Iterators - by Pottus - 09.09.2017, 00:47
Re: Problem with Iterators - by Eoussama - 09.09.2017, 00:49
Re: Problem with Iterators - by RedGun2015 - 09.09.2017, 00:56
Re: Problem with Iterators - by Pottus - 09.09.2017, 01:03

Forum Jump:


Users browsing this thread: 2 Guest(s)