Skip to main content

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

when I start the program it gives me this Error indexing `C:/Users/steve/Documents/GitHub/Versetale-Meltdown-Boots/scripts/Storage/Storage.gml`: [L19,c7]: Ambiguity: use either `[$ key` or `[ $hex`

A topic by God of the determination created 22 days ago Views: 129 Replies: 4
Viewing posts 1 to 2

Avviamento... (versione protocollo: 106; compilato il 05 marzo 2024)

Caricamento in corso 'C:/Users/steve/Documents/GitHub/Versetale-Meltdown-Boots/undertale_engine.yyp'...

Errore durante l'indicizzazione di 'C:/Users/steve/Documents/GitHub/Versetale-Meltdown-Boots/scripts/Storage/Storage.gml': [L19,c7]: Ambiguità: utilizzare '[$ key' o '[ $hex'

Il carico del progetto ha richiesto 682 ms

In ascolto sulla porta 5100...

NOTA: gli errori di esecuzione del codice "live" entrano nella finestra di output!

0 clienti.

Developer

On line 19 of Storage script you have something like struct[$key], which should be struct[$ key].

If you do not need to use this script in “live” code, you can ignore this error.

[$key] struct is not present in the code; the code only has (return data[$key] ?? defaultValue;, Storage at line 120: return data[$key] ?? defaultValue;,  Storage at line 123: data[$key] = value; )

Developer(+1)
  1. It is,
    return data[$key] ?? defaultValue;
    
    should be
    return data[$ key] ?? defaultValue;
    
  2. This does not prevent the server from working, double-check that you’re using it correctly and the common troubleshooting steps.

 when I start gmlive.server it gives me that error code and I can't use the program