C++ ScoreController::EasySetScore()

From J2Play

Jump to: navigation, search

Contents

Description

Commits a single value score.

Syntax

bool ScoreController::EasySetScore(long long value);

Parameters

* @param value specifies the scoring value

Return Value

@return true if score has been submitted to score server successfully, otherwise false

Examples

 // This will automatically update the high scores for your game on the J2Play server without any additional logic on your game's end.
 ScoreController* score = CGDKInstance::GetInstance()->GetScoreController();
 if (score)
 {
   score->EasySetScore(<Player's Score>);
 }
Personal tools