SA-MP Forums Archive
Help on Foreach - 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: Help on Foreach (/showthread.php?tid=372031)



Help on Foreach - popystone - 25.08.2012

Help me on my foreach, I got this error..

Код:
C:\Users\aNdRe\Downloads\EG-RP - Copy (5)\0.3e USRP 0.3e\gamemodes\IL-RP.pwn(39) : fatal error 100: cannot read from file: "foreach"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Help on Foreach - Dan. - 25.08.2012

You do not have the include 'foreach' in your pawno/includes folder.


Re: Help on Foreach - Lordzy - 25.08.2012

You must have "foreach" include in pawno->include.

Also you must open pawno and through there open your script.
Also the pawno.exe directory should be where all includes and stuffs are needed to run the script.


Re: Help on Foreach - popystone - 25.08.2012

I put my foreach in pawno/includes and still got that error.


Re: Help on Foreach - RedJohn - 25.08.2012

Your foreach file needs to be: foreach.inc
Not foreach(1).inc, or foreach .inc.


Re: Help on Foreach - popystone - 25.08.2012

When i rename it, Then i re-compile, my compiler stopped! So? What should i do now?


Re: Help on Foreach - popystone - 25.08.2012

Anyone can help me?


Re: Help on Foreach - popystone - 25.08.2012

HELP ME NOW PLEASE! ( I NEED IT ON MY SERVER O.O


Re: Help on Foreach - Cjgogo - 25.08.2012

DO NOT BUMP your topic,PLUS,is FOR structure so hard to understand:
pawn Код:
for(i=0;i<MAX_PLAYER;i++)
{
    //code[if you use a function that has as params playerid replace it with i]
}



Re: Help on Foreach - popystone - 25.08.2012

i really need help. O.o