Compiler crash - 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: Compiler crash (
/showthread.php?tid=626739)
Compiler crash -
Dayrion - 19.01.2017
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?
Re: Compiler crash -
AndreiWow - 19.01.2017
Check if you leave any brackets open or if you miss any " or ;
Re: Compiler crash -
Dayrion - 19.01.2017
If the script compile with the include, I didn't miss any stuff like that.
Re: Compiler crash -
SyS - 19.01.2017
What all other includes you use? And do a double check whether you have used any foreach functions in other parts of the script.
Re: Compiler crash -
princejeet1510 - 19.01.2017
i would say "check if you add an extra bracket maybe?"
cause i faced this problem today many times.....
Re: Compiler crash -
Dayrion - 19.01.2017
Quote:
Originally Posted by Sreyas
What all other includes you use? And do a double check whether you have used any foreach functions in other parts of the script.
|
sscanf2, streamer, a_samp.
The only function used y_va is in comment. Other requires nothing to work. Also, I don't have any 'foreach' in my script.
Quote:
Originally Posted by princejeet1510
i would say "check if you add an extra bracket maybe?"
cause i faced this problem today many times.....
|
If I've a extra or missing bracket, the script won't compile even with include hmm.
Re: Compiler crash -
Dayrion - 19.01.2017
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?
Re: Compiler crash -
Dayrion - 20.01.2017
UPPPPPPPP
Re: Compiler crash -
GhostHacker9 - 20.01.2017
The only way to detect the problem is by commenting the script part by pat and manually find the part causing the crash.
Re: Compiler crash -
Logic_ - 20.01.2017
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.