SA-MP Forums Archive
[HELP] Foreach called. - 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] Foreach called. (/showthread.php?tid=300654)



[HELP] Foreach called. - BlackSA - 01.12.2011

Hi Guys..
I've tried to run my server few times, and he crash after one second, this is the log:

PHP код:
----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3c, (C)2005-2010 SA-MP Team
[15:58:25
[
15:58:25Server Plugins
[15:58:25] --------------
[
15:58:25]  Loading pluginsscanf.dll
[15:58:25
[
15:58:25]  ===============================
[
15:58:25]       sscanf plugin loaded.     
[
15:58:25]    (c2009 Alex "******" Cole
[15:58:25]  ===============================
[
15:58:25]   Loaded.
[
15:58:25]  Loading pluginstreamer.dll
[15:58:25
*** 
Streamer Plugin v2.5.2 R2 by Incognito loaded ***
[
15:58:25]   Loaded.
[
15:58:25]  Loaded 2 plugins.
[
15:58:25
[
15:58:25Ban list
[
15:58:25] --------
[
15:58:25]  Loadedsamp.ban
[15:58:25
[
15:58:25
[
15:58:25Filter Scripts
[15:58:25] ---------------
[
15:58:25]   Loaded 0 filter scripts.
[
15:58:25] foreach called 
I got the include, my script is compiled well, I don't know what's the problem here.

Thanks advance.

EDIT: I've changed all the foreach to regular format with "for(..." and now it's keeping closing but with the format:
PHP код:
----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3c, (C)2005-2010 SA-MP Team
[15:58:25
[
15:58:25Server Plugins
[15:58:25] --------------
[
15:58:25]  Loading pluginsscanf.dll
[15:58:25
[
15:58:25]  ===============================
[
15:58:25]       sscanf plugin loaded.     
[
15:58:25]    (c2009 Alex "******" Cole
[15:58:25]  ===============================
[
15:58:25]   Loaded.
[
15:58:25]  Loading pluginstreamer.dll
[15:58:25
*** 
Streamer Plugin v2.5.2 R2 by Incognito loaded ***
[
15:58:25]   Loaded.
[
15:58:25]  Loaded 2 plugins.
[
15:58:25
[
15:58:25Ban list
[
15:58:25] --------
[
15:58:25]  Loadedsamp.ban
[15:58:25
[
15:58:25
[
15:58:25Filter Scripts
[15:58:25] ---------------
[
15:58:25]   Loaded 0 filter scripts



Re: [HELP] Foreach called. - BlackSA - 01.12.2011

Thanks, it just was a missing files
Your foreach doesn't involved with this D: