gms_statistic_set

Usage: gms_statistic_set ( name, value )

Description

Saves a new value for the statistic.

Example

//Increase number of pixels walked
var old_value;
old_value = gms_statistic_get("pixels_walked");
gms_statistic_set("pixels_walked", old_value + 5)

Replies (1)

Last message on 24 Jul 2017

Chibi on 24 Jul 2017, 13:21:33
Hello,
I Was Trying To Add The Kills And Deaths To The Scoreboard (Highscore List) With The Code That You've put In The Example "gms_statistic_set("deaths", gms_statistic_get("deaths") + 1);", but it's still not tracking the kills and deaths on the scoreboard.
What could be possibly wrong ?