IT error.
#4

Код:
new Iterator:Gangs[4]<MAX_PLAYERS>;

Iter_Init(Gangs); // You need to use this for multidimensional array
Iter_Add(Gangs[2], playerid);

foreach(new i : Gangs[2])
{
	print("Player id %d is a member of gang id 2", i);
}
You should use Iter_Init for multidimensional array.
And i guess you're trying to insert playerid into gang iterator, so i've changed the way you declare "Gangs" variable and the loop code.
Reply


Messages In This Thread
IT error. - by KessMan - 31.10.2016, 14:27
Re: IT error. - by KessMan - 31.10.2016, 16:24
Re: IT error. - by Eoussama - 31.10.2016, 16:57
Re: IT error. - by X337 - 31.10.2016, 17:14
Re: IT error. - by KessMan - 31.10.2016, 17:25
Re: IT error. - by Konstantinos - 31.10.2016, 17:30
Re: IT error. - by X337 - 31.10.2016, 17:31
Re: IT error. - by KessMan - 31.10.2016, 17:31
Re: IT error. - by KessMan - 31.10.2016, 18:09
Re: IT error. - by X337 - 31.10.2016, 18:38

Forum Jump:


Users browsing this thread: 5 Guest(s)