Highscore

Gestart door MaxMCFan
Hello! I want to add highscores for a game i'm making, but it doesn't work, I always get this error


___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Alarm Event for alarm 0
for object obj_scorecontroller:

Push :: Execution Error - Variable Get -1.lijst(100004, -2147483648)
at gml_Object_drawthingstfu_ObjAlarm0_1 (line 1) - gms_highscore_add(lijst,scoregot);
############################################################################################

I'm assuming this means it can't find the list? (And yes I have added the list "lijst" in the highscore list tab)
Also, I wasn't sure if I needed to use the normal in build score, or a custom variable (in this case scoregot)
Oh, and another question, I have the object obj_player and GMS set up right, but do I need to add the highscores from them, or can I just use an object from my game

Reacties (1)

Laatste bericht op 18 Apr 2015

Size43 (Beheerder) op 18 Apr 2015, 11:52:29
You'll need to use the highscore list ID as the first argument. You can find this number on the "Edit highscorelist" page, which you can find by clicking on a highscorelist on the developer page of your game.