18.07.2009, 15:24
Something like this:
I prefer to use playerid param with textdraw in this case, since you want to show money for every player, but you also must create textdraw for all players and you must use textdraw variable like this:
pawn Код:
format(string, sizeof(string), "Money: %d", GetPlayerMoney(playerid));
TextDrawSetString(TextDraw0[playerid], string);
TextDrawShowForPlayer(playerid, TextDraw0[playerid]);
pawn Код:
new Text:TextDraw0[MAX_PLAYERS];