SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Includes (https://forum.sa-mp.com/forumdisplay.php?f=83)
-   -   [Include] foreach 0.4.1 standalone include (https://forum.sa-mp.com/showthread.php?t=570868)

Kar 14/04/2015 11:02 AM

foreach 19 standalone include
 
https://github.com/karimcambridge/SAMP-foreach/releases

I told ****** 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.

RaeF 14/04/2015 11:07 AM

Re: foreach 0.4.1 standalone include
 
y_commands for standalone version pls, that would be nice haha

lukewid 14/04/2015 11:53 AM

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 ******'s work.

Crayder 14/04/2015 12:31 PM

Re: foreach 0.4.1 standalone include
 
Quote:

Originally Posted by lukewid (Post 3430523)
great!

I was starting to think no one was actually going to re-release some kind of edit of ******'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.

Gammix 14/04/2015 02:43 PM

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?

Kar 14/04/2015 03:32 PM

Re: foreach 0.4.1 standalone include
 
The latest foreach required YSI.

Itter is spelt in correctly, they are now named Iter.

Crayder 14/04/2015 09:44 PM

Re: foreach 0.4.1 standalone include
 
Quote:

Originally Posted by Kar (Post 3430636)
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.

Kar 15/04/2015 12:35 AM

Re: foreach 0.4.1 standalone include
 
Quote:

Originally Posted by Crayder (Post 3430998)
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.

Emmet_ 15/04/2015 12:40 AM

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.

Crayder 15/04/2015 01:10 AM

Re: foreach 0.4.1 standalone include
 
Quote:

Originally Posted by Kar (Post 3431148)
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!


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

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