- GetUserPoints(game, user)
This commit is contained in:
@@ -132,6 +132,10 @@ namespace jscore {
|
|||||||
return not jscore_error;
|
return not jscore_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const int getUserPoints(string game, std::string user) {
|
||||||
|
return atoi(sendRequest("GET /getuserpoints.php?game=" + game + "&user=" + user).c_str());
|
||||||
|
}
|
||||||
|
|
||||||
string getUserData(string game, string user) {
|
string getUserData(string game, string user) {
|
||||||
return sendRequest("GET /getuserdata.php?game=" + game + "&user=" + user);
|
return sendRequest("GET /getuserdata.php?game=" + game + "&user=" + user);
|
||||||
}
|
}
|
||||||
|
|||||||
1
jscore.h
1
jscore.h
@@ -6,6 +6,7 @@ namespace jscore {
|
|||||||
const int getNumUsers();
|
const int getNumUsers();
|
||||||
std::string getUserName(const int index);
|
std::string getUserName(const int index);
|
||||||
const int getPoints(const int index);
|
const int getPoints(const int index);
|
||||||
|
const int getUserPoints(std::string game, std::string user);
|
||||||
|
|
||||||
const bool updateUserPoints(std::string game, std::string user, const int points);
|
const bool updateUserPoints(std::string game, std::string user, const int points);
|
||||||
std::string getUserData(std::string game, std::string user);
|
std::string getUserData(std::string game, std::string user);
|
||||||
|
|||||||
Reference in New Issue
Block a user