Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
Hey.
The compiler crash during execut my script.
This happens when I remove foreach include. The thing is I've no foreach in my script and I used it for including y_va functions (I removed them).
The script compile fine with the include and crash without it. Any ideas?
Posts: 1,046
Threads: 250
Joined: Nov 2014
Reputation:
0
Check if you leave any brackets open or if you miss any " or ;
Posts: 1,939
Threads: 11
Joined: Oct 2015
Reputation:
0
What all other includes you use? And do a double check whether you have used any foreach functions in other parts of the script.
Posts: 115
Threads: 7
Joined: Mar 2016
Reputation:
0
i would say "check if you add an extra bracket maybe?"
cause i faced this problem today many times.....
Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
So.. I don't understand.
Make a debug which I return 1 for every function I have (ex: GetPlayersInArea(areaid) return 1; ). Still crash. Commented part of part of my screen, still crashing. What is come from?
Posts: 107
Threads: 0
Joined: Jan 2017
Reputation:
0
The only way to detect the problem is by commenting the script part by pat and manually find the part causing the crash.
Posts: 1,506
Threads: 13
Joined: Jun 2015
I once also encountered this kind of problem, but found out that there were no missing brackets or semi colon but a wrong function keyword usage. I accidently used 'timer' instead of 'task' when I was working with y_timers.