Assignment Operator Expected

Assignment Operator Expected Error

This error happens when you use a variable name without an assignment operator, better known as the equals sign to you and me : ( = ).

this_var;
// should be
this_var = something;

It can also happen if there is no bracket after a function, example:

instance_destroy
//should be:
instance_destroy()

The error message "Assignment operator expected" actually refers to the first bracket, because if you include that first bracket without the second one a different error Symbol ) expected will be generated, example:

instance_destroy(
//should be:
instance_destroy()