SA-MP Forums Archive
Include or Script fail? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Include or Script fail? (/showthread.php?tid=402055)



Include or Script fail? - Saize - 25.12.2012

Hey Guys, Iґm scripting a new Script, but i always get 4 Error, can you tell me, what is the fail?
BTW, sorry for my bad english.
Quote:

C:\Users\Benutzer_1\Spiele\PeM.pwn(800) : error 017: undefined symbol "foreach"
C:\Users\Benutzer_1\Spiele\PeM.pwn(800) : error 029: invalid expression, assumed zero
C:\Users\Benutzer_1\Spiele\PeM.pwn(800) : error 017: undefined symbol "i"
C:\Users\Benutzer_1\Spiele\PeM.pwn(800) : fatal error 107: too many error messages on one line

And the Line 800:
PHP код:
    foreach(new Player) { 
I already includet foreach, so what is the fail?:S


Re: Include or Script fail? - ReneG - 25.12.2012

You didn't include it properly if "foreach" is undefined.

Make sure you have
pawn Код:
#include <foreach>
at the top of your script.


AW: Include or Script fail? - Saize - 25.12.2012

Yes, i includet foreach, and you can read it on my first post...


Re: AW: Include or Script fail? - ReneG - 25.12.2012

Quote:
Originally Posted by Saize
Посмотреть сообщение
Yes, i includet foreach, and you can read it on my first post...
Then there is nothing anyone can do unless you double check. The error is in plain english, yet people fail to understand what it means. "foreach" isn't being found in any of the scripts you're using.


AW: Include or Script fail? - Saize - 25.12.2012

How have I to write it into the Server.cfg?

Like this?:
Quote:

plugins sscanf foreach

I think, I only forgettet that... but when i write this in the server.cfg, it isnґt running too:X


Re: Include or Script fail? - Faisal_khan - 25.12.2012

foreach ain't a plugin! It's an include.


Re : Include or Script fail? - Rayan_black - 25.12.2012

Are you sure you downloaded foreach include and added it to pawno->includes?


Re: Include or Script fail? - Faisal_khan - 25.12.2012

If he wouldn't have placed the file in includes, then he would have got a fatal error.


AW: Include or Script fail? - Saize - 25.12.2012

Yes foreach.inc ist in my include Folder, so what can be the Problem?


AW: Include or Script fail? - Saize - 25.12.2012

Please help me :S
Or I cant script the next steps