SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 24/11/2010, 05:43 PM   #251
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629
Posts: 16,004
Reputation: 2280
Default Re: foreach - 0.3 compatible.

There is a newer version, but the link seems to be down:

http://y-less.pastebin.com/zBqjh3DJ
__________________
Y_Less is offline   Reply With Quote
Old 24/11/2010, 08:55 PM   #252
SeQualX
Huge Clucker
 
Join Date: May 2010
Location: In the bath room.
Posts: 434
Reputation: 0
Default Re: foreach - 0.3 compatible.

I get this error:

pawn Code:
D:\stuff\GTA san andreas multiplayer\FilterScripts\FS Foreach\Foreach.pwn(140) : fatal error 111: user error: "Please include a_samp or a_npc before foreach"
SeQualX is offline   Reply With Quote
Old 24/11/2010, 09:05 PM   #253
Luka P.
High-roller
 
Luka P.'s Avatar
 
Join Date: Feb 2009
Posts: 1,621
Reputation: 11
Default Re: foreach - 0.3 compatible.

Do what it says:

pawn Code:
#include "a_samp.inc"
#include "foreach.inc"

or

pawn Code:
#include "a_npc.inc"
#include "foreach.inc"
Luka P. is offline   Reply With Quote
Old 24/11/2010, 09:27 PM   #254
GaGlets(R)
Gangsta
 
GaGlets(R)'s Avatar
 
Join Date: Oct 2009
Posts: 931
Reputation: 0
Default Re: foreach - 0.3 compatible.

I changed my foreach version also. There were many errors when compilded script
Most of errors when i have used
pawn Code:
foreach (Player, i) // error undefined symbol `i`
Previous errors with `new Iterator:` were gone, so how to fix undefined symbol?

Edit: soz fixed that, my faulth.

Still got Errors when trying to call foreach:
pawn Code:
larp.pwn(7855) : error 017: undefined symbol "YSI_gSHouses"
larp.pwn(7855) : error 017: undefined symbol "YSI_gAHouses"
larp.pwn(7855) : warning 215: expression has no effect
larp.pwn(7855) : error 001: expected token: ";", but found "]"
larp.pwn(7855) : fatal error 107: too many error messages on one line
That line is;
pawn Code:
foreach (Houses, var) { ....

Last edited by GaGlets(R); 24/11/2010 at 09:41 PM.
GaGlets(R) is offline   Reply With Quote
Old 25/11/2010, 03:37 AM   #255
SeQualX
Huge Clucker
 
Join Date: May 2010
Location: In the bath room.
Posts: 434
Reputation: 0
Default Re: foreach - 0.3 compatible.

Wheres the foreach.inc?
SeQualX is offline   Reply With Quote
Old 25/11/2010, 07:04 AM   #256
armyoftwo
Gangsta
 
armyoftwo's Avatar
 
Join Date: Nov 2009
Posts: 693
Reputation: 4
Default Re: foreach - 0.3 compatible.

do you have?
Code:
new Iterator:Houses<MAX_HOUSES>;
__________________
- [INC] Multi language
armyoftwo is offline   Reply With Quote
Old 25/11/2010, 03:25 PM   #257
GaGlets(R)
Gangsta
 
GaGlets(R)'s Avatar
 
Join Date: Oct 2009
Posts: 931
Reputation: 0
Default Re: foreach - 0.3 compatible.

Quote:
Originally Posted by armyoftwo View Post
do you have?
Code:
new Iterator:Houses<MAX_HOUSES>;
Oke thanx for ""Replies .. .

fixed somehow..
GaGlets(R) is offline   Reply With Quote
Old 27/11/2010, 05:14 PM   #258
dark_clown
Huge Clucker
 
dark_clown's Avatar
 
Join Date: Oct 2010
Location: Behind you
Posts: 278
Reputation: 10
Default Re: foreach (0.3 theoretical compatibility)

Quote:
Originally Posted by Y_Less View Post
I'm an idiot! I forgot the download link:

http://y-less.pastebin.com/zBqjh3DJ

And foreach has existed for years, it just didn't have an official topic.
i know u are its ok ....
__________________
Started making Fort Carson RP
Quote:
My work:
[FS]In game label creator
dark_clown is offline   Reply With Quote
Old 27/11/2010, 05:50 PM   #259
Luka P.
High-roller
 
Luka P.'s Avatar
 
Join Date: Feb 2009
Posts: 1,621
Reputation: 11
Default Re: foreach - 0.3 compatible.

Do you have some mental issue or something?
Luka P. is offline   Reply With Quote
Old 28/11/2010, 12:02 AM   #260
GaGlets(R)
Gangsta
 
GaGlets(R)'s Avatar
 
Join Date: Oct 2009
Posts: 931
Reputation: 0
Default Re: foreach - 0.3 compatible.

Omg the fuking new foreach crashes/stops (just wont respond anymore) server after foreach (Player, i) usage ;@

Edit:
Everything works fine with old one.. ;S ;@
GaGlets(R) 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
Updated Foreach, but then i got a compiling problem. Zack_Burton Scripting Help 0 01/05/2012 05:39 PM
Mac Compatible? Zeeee Client Support 7 12/12/2011 08:40 PM
[>>>SSA<<<] SuperSimpleAdmin [0.3x COMPATIBLE!] [mad]MLK Filterscripts 10 10/12/2009 06:28 AM


All times are GMT. The time now is 04:05 AM.


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