Show textdraw only for one player
#1

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

pawn Код:
forward GeldTimer(playerid);
public GeldTimer(playerid)
{
    new string[48];
    format(string, sizeof(string), "$%d", PlayerInfo[playerid][pCash]);
    TextDrawSetString(geldanzeige, string);
    return 1;
}
but i think it will be like this, if a player connects, then everyone sees his money value

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);
i tried to add [playerid] everywhere after geldanzeige but i get errors
Reply


Messages In This Thread
Show textdraw only for one player - by Dripac - 11.03.2012, 16:51
Re: Show textdraw only for one player - by chrism11 - 11.03.2012, 17:00
AW: Show textdraw only for one player - by Dripac - 11.03.2012, 17:08
Re: Show textdraw only for one player - by Abreezy - 11.03.2012, 17:11
AW: Re: Show textdraw only for one player - by Dripac - 11.03.2012, 17:13
Re: Show textdraw only for one player - by suhrab_mujeeb - 11.03.2012, 17:15
AW: Show textdraw only for one player - by Dripac - 11.03.2012, 17:37

Forum Jump:


Users browsing this thread: 2 Guest(s)