achievement_available


语法:

achievement_available()


Returns:

Boolean


描述

This function will return true if the user is currently connected to the internet and the chosen leaderboard and achievement system is available, otherwise it will return false.


例如:

if achievement_available() achievement_post("ach_Level1", 100);

The above code will check that the leaderboard service is available and if so, post to it.