AylinCE Grandmaster Cheater Supreme
Reputation: 35
Joined: 16 Feb 2017 Posts: 1478
|
Posted: Mon Apr 03, 2023 4:58 pm Post subject: Lua Script "Unknown Error" Fix! |
|
|
-- Where is the mistake? In what line or syntax?
CE Lua Scripte I came across something recently.
It was difficult to tell whether this was a mistake or not.
Because Script Load was detecting an error and was not telling what it was.
So like this;
It shows no problem in CT code.
Cetrainer shows no problem in code.
The script works fine in both formats.
But on a different PC it was giving the error in the picture below and not telling where the error was.
Here is the solution and general test procedure;
Paste the following code at the beginning of your existing script code;
Code: | local status, err = pcall(function() |
And paste the following code at the bottom and run the script.;
There's no guarantee he'll see everything.
But in my case it saved a 4000 line script from having to go through again.
If you have similar solutions, feel free to comment.
_________________
|
|