28.05.2020, 15:32
Bom, eu fiz um text draw de cash, dai eu queria fazer pra aparecer quantos cash o player tem
Quem consegui fazer isto, recebera +REP!
pawn Code:
Textdraw3 = TextDrawCreate(1.000000, 432.000000, "Cash:");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawSetSelectable(Textdraw3, 0);
/////////////////////////////////////////////////////////////
new Cash[MAX_PLAYERS] = 0;
Cash[playerid] = (playerid,dUserINT(PlayerName(playerid)).("Cash"));
dUserSetINT(PlayerName(playerid)).("Cash",Cash[playerid]);
Cash[playerid] = 0;