As per doc, you'll need a recent version of GMS1 - variable_global_* functions have been recently reintroduced; variable_instance_* functions didn't previously exist (GM8 had variable_local_* functions, which were similar but not the same) and were introduced in the same update.