GetPlayerMoney

Description

Retrieves the amount of money a player has.

NameDescription
playeridThe ID of the player to get the money of.

Returns

The amount of money the player has.

Examples

public OnPlayerSpawn(playerid)
{
new string[32];
format(string, sizeof(string), "Your money: $%i.", GetPlayerMoney(playerid));
SendClientMessage(playerid, 0xFFFFFFAA, string);
}

Related Functions