SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 14/04/2015, 10:02 AM   #1
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,184
Reputation: 506
Default foreach 19 standalone include

https://github.com/karimcambridge/SAMP-foreach/releases

I told Y_Less that I would maintain this old standalone version and he was OK with it.

Major changes in 19:

0.4.3

Code:
Iterators are now default set to ITER_NONE (-1), because in this version, an iterator can only hold 0 - size.
Added Iter_Finish and Iter_Previous marcos.
Remove \n at the end of the file.
Removed Iter_Debug & Iter_ShowArray (unused / disabled).
Remove space on function declarations.
foreach: clear each iterator under OnFilterScriptInit/OnGameModeInit.
Added a revised Iter_SafeRemoveInternal (ZiGGi).
Fix tags (ZiGGi).
Fix some grammar issue with spaces.
0.4.2

Code:
Code cleanup (renamed all Itter_ to Iter and removed excess).
Removed unnecessary information.
As I don't like how the newer foreach versions require YSI, this is the only one that I use.

This foreach 19 now replicas y_iterate at version 19.

Last edited by Kar; 02/10/2017 at 07:27 PM.
Kar is offline   Reply With Quote
Old 14/04/2015, 10:07 AM   #2
RaeF
Huge Clucker
 
Join Date: Dec 2014
Location: Indonesia
Posts: 265
Reputation: 27
Default Re: foreach 0.4.1 standalone include

y_commands for standalone version pls, that would be nice haha
RaeF is offline   Reply With Quote
Old 14/04/2015, 10:53 AM   #3
lukewid
Little Clucker
 
Join Date: Mar 2015
Posts: 35
Reputation: 0
Default Re: foreach 0.4.1 standalone include

great!

I was starting to think no one was actually going to re-release some kind of edit of Y_Less's work.
__________________
Android/Web developer
More specificly: javascript, jquery, mysql, mongo, node.js, html, php, css, java, .net
lukewid is offline   Reply With Quote
Old 14/04/2015, 11:31 AM   #4
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,857
Reputation: 602
Default Re: foreach 0.4.1 standalone include

Quote:
Originally Posted by lukewid View Post
great!

I was starting to think no one was actually going to re-release some kind of edit of Y_Less's work.
Trust me you're wrong. You're gonna see YSI somewhere soon.

Plus, Kar, you didn't need his permission. Look at the license.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 14/04/2015, 01:43 PM   #5
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,807
Reputation: 831
Default Re: foreach 0.4.1 standalone include

I don't see why you are releasing a standalone version of foreach?

YSI don't even use memory hacking and as well y_iterate. So you can still continue using it with SAMP client updates.
Quote:
Code cleanup (remove all Itter_)
Itter_ functions are most important and useful part of foreach though!

@RaeF: whats wrong using y_commands include from YSI itself?
__________________

My GitHub:

Gammix is offline   Reply With Quote
Old 14/04/2015, 02:32 PM   #6
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,184
Reputation: 506
Default Re: foreach 0.4.1 standalone include

The latest foreach required YSI.

Itter is spelt in correctly, they are now named Iter.
Kar is offline   Reply With Quote
Old 14/04/2015, 08:44 PM   #7
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,857
Reputation: 602
Default Re: foreach 0.4.1 standalone include

Quote:
Originally Posted by Kar View Post
The latest foreach required YSI.

Itter is spelt in correctly, they are now named Iter.
Actually foreach has always been YSI. Foreach was like a chalkboard compared to it's upgrade - the whiteboard, y_iterate.

And @Gammix: LOL. Itter was just a misspelling that has been fixed for a few months.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 14/04/2015, 11:35 PM   #8
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,184
Reputation: 506
Default Re: foreach 0.4.1 standalone include

Quote:
Originally Posted by Crayder View Post
Actually foreach has always been YSI. Foreach was like a chalkboard compared to it's upgrade - the whiteboard, y_iterate.
Okay.

foreach has a version which does NOT require YSI. Which is THIS version.

The foreach 0.3 compatible thread was the STANDALONE version.

There was always 2 versions of foreach, a y_iterate version and foreach.inc.

You guys are probably too new here to realize it.

Why are you guys complaining.. I have done nothing wrong....

21/08/09:
Updated to include random functions.
Made entirely stand alone.
Ported to 0.3 (separate version).
Added automatic callback hook code.
Removed debug information from stand alone version.
06/01/08:
Added debug information.
09/10/07:
Moved to system.
16/09/07:
Added list sorting.
Made this part of Y SeRver Includes, not Y Sever Includes.
Made list sorting optional.
Fixed version number.
08/09/07:
First version.

Last edited by Kar; 15/04/2015 at 12:16 AM.
Kar is offline   Reply With Quote
Old 14/04/2015, 11:40 PM   #9
Emmet_
Guest
 
Posts: n/a
Default Re: foreach 0.4.1 standalone include

Thanks for re-posting this. It's great that everyone is starting to post his work again, since a lot of people rely on it for their projects.
  Reply With Quote
Old 15/04/2015, 12:10 AM   #10
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,857
Reputation: 602
Default Re: foreach 0.4.1 standalone include

Quote:
Originally Posted by Kar View Post
Why are you guys complaining.. I have done nothing wrong....
How was I complaining? I was merely stating something. Y_Iterate was built off of foreach (mostly) so therefore foreach has been part of YSI. I didn't say you did anything wrong!
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foreach include SkyLoKi Scripting Help 8 06/03/2015 02:48 PM
when i include foreach thats what i get.. KillerStrike23 Scripting Help 2 21/05/2014 12:26 PM
[Pedido] Include foreach Krusheer Português/Portuguese 0 26/04/2014 02:45 PM
[Ajuda] include foreach minimessi10 Português/Portuguese 7 27/03/2014 06:22 PM
[Pedido] Include SII foreach fackbook Português/Portuguese 5 16/01/2013 03:25 PM


All times are GMT. The time now is 02:06 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.