string
#1

^^^^^^^^
Reply
#2

If PlayerName returns the name, then:
pawn Код:
format(string, sizeof (string), "%s (%d)", PlayerName(playerid), playerid);
It'll be: "Ananisiki (0)"

* The ID is 0 into parenteses.
Reply
#3

Try This :-

pawn Код:
format(string, sizeof(string), "%s (ID: %d)", PlayerName(playerid), playerid;
TextDrawSetString(Textdraw1, string);
EDIT :-
Konstantino is more Faster than me
Reply
#4

^^^^^^^^
Reply
#5

You mean GameTextForPlayer ?

Shows the Message at the Middle,

If yes;

Try This:
pawn Код:
new gstrings[128];
        format(gstrings, sizeof(gstrings), "~r~%s ~w~(ID: ~r~%d~w~)", PlayerName(playerid), playerid);
        GameTextForPlayer(playerid, gstrings, 5000, 5);
or This:
pawn Код:
new gstrings[128];
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(gstrings, sizeof(gstrings), "~r~%s ~w~(ID: ~r~%d~w~)", pName, playerid);
        GameTextForPlayer(playerid, gstrings, 5000, 5);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)