Include or Script fail?
#1

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
Reply
#2

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

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

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

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.
Reply
#5

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
Reply
#6

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

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

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)