.Error: Exception: FindDTMs: DTM[] is not consistent at line 260
what is mean?
Compiled successfully in 1422 ms.
Error: Exception: FindDTMs: DTM[] is not consistent. at line 260
The following DTMs were not freed: [0, 1, 2]
Quote:
Originally Posted by
abu_jwka
This is a tutorial for those who get errors while trying to
create a script not run one. For errors when trying to run a script go to:
So, you get an error huh? and the
FAQ
Without further adieu:
- Semicolon (';') expected at line xx
This means on the above line, you forgot to put a semicolon ; at the end of it
---
- Identifier Expected at Line xxx
It's cause by not having enough end; meaning you the number of begins and ends in your procedure/function do match up - there needs to be an equal number. Also note that a case needs and end; too.
---
- Unknown identifier '' at line xx
There are various reasons why this are caused.
Firstly, it may be because you have an undeclared variable. By this I mean you want a word to represent a value and you use it, such as:
Simba Code:
procedure Logs;
begin
Logs := 2;
end;
You need to tell the script what 'Logs' represnt, to do this you have to decalre it as a variables, so:
Simba Code:
procedure Logs;
var
Logs: Integer; // declared here as an integer, which a whole number
begin
Logs := 2;
end;
Another reason it because you may have misspelled a function, such as spelling WriteLn as WriteIn <- with an 'i', which means that Simba has no idea what the function is supposed to mean
The final reason you may have got this error is because you forgot to include Simba, make sure you have this after you define smart:
And this in your mainloop:
Simba Code:
SetUpSRL; // put before your functions
--- - Assignment expected at line xx
This means, when writing the equals sign in simba, you put the colon but forgot to put the actual equals sign. It should:
Simba Code:
i := 2; //look like this
i :2; // not this
--- - Error: Exception: Access violation at line 101
When trying to script - if you get this error it means you have forgotten to put SetUpSRL; at the start of your mainloop
--- - Duplicate Identifier '' at Line xx
There are a few reason why this may occur.
The first is because you have made two procedures/functions with the same name.
The second is because you have made a procedure/function with a name that already exists in the SRL Include.
The third is because you named a variable the same as a procedure or function that already exists in the SRL Include.
--- - Invalid number of parameters at line xx
This means, when using a function you have not put the right amount of values within the brackets. This is either because you just haven't, or you missed out a comma.
In this case, you may also get the rror:
Code:
comma (',') expected at line xx
--- - Closing square bracket (']') expected at line xx
When you use a square bracket [, make sure you close it with a closed square bracket ]
--- - Closing parenthesis expected at line 21
Simple means you have forgotten to put a closing bracket ) at that line, go to the line and put in the bracket or remove the extra bracket if that is the problem.
--- - Colon (':') expected at line xx
Usually occurs when you make a function but forget to write what it returns. For example:
Simba Code:
function HeyThere; // will not compile
function HeyThere: Boolean; // tells Simba it returns a boolean, will compile
--- - Syntax error at line xx
This means you've messed up somewhere when using signs - usually the equals sign. Make sure they are correct.
--- - Type mismatch at line xx
The most common reason this error occurs is because you have entered a value wrong within the brackets for a function.
For example you have written an integer (number) when there should be a string (word). Or if you have declared something as a string or integer when it should've been the other way round.
Another reason may be because when using functions such as FindObjCustom, which allow you to put multiple uptexts and colours, the multiple uptexts and colours must go within square brackets regardless of the amount you use. So:
Simba Code:
FindObjCustom(x, y, 'heymama', [234, 567], 20); // will not compile
FindObjCustom(x, y, ['heymama'], [234, 567], 20); //this will because it has square brackets around the uptext 'heymama'
Having said the above point, you will also get a mismatch error if you use normal brackets where square brackets are needed.
---
Unexpected end of file at line 0
This error occurs when you are missing your final end. Put it in and remember that it needs a period(.) after it as it is the last one.
---
So yeh there is a list of the most common errors people seem to be getting when trying to make scripts, hopefully this will help you on your way!
If you want any common errors to be added to this list let me know. Also, be sure to point out any reason I may not have mentioned for errors :)
Like, comment and subscribe *lool*:)
what is mean this error.