I'm experimenting with Etna and I'm having a problem with it that I can't figure out, and I hope someone can help me.
I works...kinda. I've made a SQL table with 2 records - 'user' and 'scores', and if I set a new name it'll upload the score and the name as it should, but if I try again with the same name and a higher score nothing happens. It's like it won't store another score if the name of the player is already there.
I works...kinda. I've made a SQL table with 2 records - 'user' and 'scores', and if I set a new name it'll upload the score and the name as it should, but if I try again with the same name and a higher score nothing happens. It's like it won't store another score if the name of the player is already there.
Edit: I've put my question into a quotebox and removed my code as I've solved the problem. The problem was not the code but the tables on the sql server. I'd originally set the 'user' table as primary but when I changed the 'scores' table to be the primary instead, it worked. Yay. :)
I still have 2 questions though.
* I haven't been able to figure out how I can show the scores from a webpage. Can someone help?
* Each time you're syncing with the server a score gets added, but I'll probably never show more than the 10 highest scores, so is there something I can do to avoid hundreds (or more) entries into the database (and not having to log into the mysql manager and delete entries manually)?