Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

GMLive falsely call the enum error I already declared on a seperate script

A topic by Jumbooffical2 created 74 days ago Views: 79 Replies: 1
Viewing posts 1 to 2
(2 edits)

[GMLive][Sun 12 Jul 2026 03:19:09 PM +07][ERROR] Error in obj_player:Draw_0:

[GMLive][Sun 12 Jul 2026 03:19:09 PM +07][ERROR] obj_player:Draw_0 [line 98, col 35] Enum `QSlot` does not contain field `Mount`

Line 98: if quickslot[selected_item, QSlot.Mount] == spr_knife_mount {

Hello. I have the enum declared on a seperate script, I use quickslot variable as 2d array and game run fine but when I tried to save and update the code while gmlive is running, it throw this error. I need help to ignore this error somehow

Developer (2 edits)

Don’t call your script the same as the enum, in recent GM versions this is ambiguous between QSlot<enum>.Mount<enum field> and QSlot<script>.Mount<static variable> and might break as more compiler logic is changed in GMRT.

If that’s not what it is, send me a sample project with the enum that breaks and I’ll have a look