steam_reset_all_stats_achievements

Reset all statistics and achievements.

Syntax:

steam_reset_all_stats_achievements();


Returns: N/A


Description

With this function you can reset all the statistics and achievements for you game to their default values (as defined in the Steamworks control panel for your game). It is recommended that you only use this function as a debug tool when developing your game.


Example:

ini_open("Save.ini");
if global.Version != ini_read_real("Data", "Version", 0)
   {
   ini_write_real("Data", "Version", global.Version);
   steam_reset_all_stats_achievements();
   }
ini_close();

The above code checks a stored value in an ini file against that of a global variable and if they are different, it resets the statistics and achievements for the game.


Back: Steam API
Next: steam_is_cloud_enabled_for_app
© Copyright YoYo Games Ltd. 2018 All Rights Reserved