11.03.2012, 16:51
Do i have to add [playerid] or [i] at the textdraw code to show it for the player? because i use a custom money system with textdraw, here is the code
but i think it will be like this, if a player connects, then everyone sees his money value
i tried to add [playerid] everywhere after geldanzeige but i get errors
pawn Код:
forward GeldTimer(playerid);
public GeldTimer(playerid)
{
new string[48];
format(string, sizeof(string), "$%d", PlayerInfo[playerid][pCash]);
TextDrawSetString(geldanzeige, string);
return 1;
}
pawn Код:
geldanzeige = TextDrawCreate(498.000000, 79.000000, "$15000000");
TextDrawBackgroundColor(geldanzeige, 255);
TextDrawFont(geldanzeige, 2);
TextDrawLetterSize(geldanzeige, 0.470000, 1.899999);
TextDrawColor(geldanzeige, -1);
TextDrawSetOutline(geldanzeige, 0);
TextDrawSetProportional(geldanzeige, 1);
TextDrawSetShadow(geldanzeige, 1);
TextDrawUseBox(geldanzeige, 1);
TextDrawBoxColor(geldanzeige, 255);
TextDrawTextSize(geldanzeige, 607.000000, 199.000000);