GetPlayerMoney

From SA-MP Wiki

Jump to: navigation, search


Description:

Retrieves the amount of money a player has.


Parameters:
(playerid)
playeridThe ID of the player to get the money of.


Return Values:

The amount of money the player has.


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

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
Navigation
Toolbox
In other languages