Ugrás a fő tartalomhoz

GetPlayerScore

Description

This function returns a player's score as it was set using SetPlayerScore

NameDescription
playeridThe player to get the score of.

Returns

The player's score.

Examples

public OnPlayerCommandText(playerid,text[])
{
if (!strcmp(cmdtext, "/score", true))
{
new string[32];
format(string, sizeof(string), "Your score: %i", GetPlayerScore(playerid));
SendClientMessage(playerid, COLOR_ORANGE, string);
return 1;
}
return 0;
}