Name not appearing on leaderboards?

T

TheLMan101

Guest
Hi,
First time programmer, definite newbie, trying to make the most out of what little I learned at university :p I started making a game where you avoid things falling from the sky and, when you lose, you submit your score to the leaderboard. And yet, for some reason, my high-score table doesn't save the name or score of the player. Mostly using DND, but with a bit of coding here and there, here's my code -

//when the player runs out of lives
global.name = get_string("GAME OVER! Enter your name:","")
highscore_add(global.name, score);
room_goto_next()

//on the high-score room
draw_highscore(150,50,1770,1030)

if I'm doing something obviously wrong, please let me know, but I've tried changing the variables to the global versions and back, and everyting else in between, that I can think to change
 
Top