Questions about "foreach" include
#3

Is SA-MP foreach the same as .NET in the sense that if you wanted index looping, you'd opt for for() rather than foreach()? edit// i'm just wondering if foreach in sa-mp has add, remove and edit powers.

But anyways, I'd use foreach() if you wanted to loop through a collection of items where you don't care for the index. At least that's how it's conventionally used, right?
Reply


Messages In This Thread
Questions about "foreach" include - by Watermelonnable - 06.03.2018, 23:25
Re: Questions about "foreach" include - by StrikerZ - 07.03.2018, 01:10
Re: Questions about "foreach" include - by sammp - 07.03.2018, 02:26
Re: Questions about "foreach" include - by Watermelonnable - 07.03.2018, 09:32
Re: Questions about "foreach" include - by sammp - 07.03.2018, 14:24
Re: Questions about "foreach" include - by Uberanwar - 07.03.2018, 15:54
Re: Questions about "foreach" include - by Zeus666 - 16.03.2018, 23:06

Forum Jump:


Users browsing this thread: 2 Guest(s)