achievement_available

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.

 

Syntax:

achievement_available()

 

Returns:

Boolean

 

Example:

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.