i can submit but not to get any highscore.
in a controller i have this code.
STEP EVENT
if wave=11 then global.endgame=true
if instance_number(obj_enemy_parent)=0 and global.endgame=true
{
score=score+wave+money-300+(lives*100);
room_persistent = false;
instance_create(0,0,obj_score1)
}and in obj_score1 i have this.
CREATE EVENT
{
place = cw_highscore_create(global.username, score, "");
cw_highscore_get(100,"",0); //load the first 100 highscores
show_message("You got " + string(place) + "th place!");
//did we actually retrieve at least one highscore?
if (cw_highscore_count() > 0)
{
//announce the name and score of the top player
show_message("The top player is " + cw_highscore_player(1));
show_message("Their score is " + cw_highscore_score(1));
splash_set_position(1,1)
splash_set_size(800,600)
splash_show_web("http://www.ioannisgames.com/test1.1111111111111.html","")
}
else
{
show_message("No highscores were retrieved.");
splash_set_position(1,1)
splash_set_size(800,600)
splash_show_web("http://www.ioannisgames.com/test1.1111111111111.html","")
}
room_goto(roommenu0);
}in the debug messages it tells me thisFailed to retrieve token: 102
Failed to create stat: 101 'Action Complete'
Failed to retrieve highscore: 103 'Action Complete, Information Retrieved'
Failed to retrieve token: 102
Failed to create highscore: 101 'Action Complete'
You must load the highscores with cw_highscore_get before calling cw_highscore_count
even if i remove the the go to room command the same result
Edited by Morpheas, 30 April 2012 - 04:38 PM.











