Problem with Iterators
#6

Quote:
Originally Posted by Pottus
Посмотреть сообщение
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.

Код:
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]])
{

}
I need the Iterator to search every single player that was added for applied for ex: for Job 14 (trucker) when they lost their Trailer to put attach back. This is what I'm trying to do. I have a timer for this and i need to search every single player that was added in Iterator.
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: 1 Guest(s)