how to add Player near the name on the chat and player actions
#4

Quote:
Originally Posted by Death1300
Посмотреть сообщение
pawn Код:
new string[128], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s (%d): %s", name, playerid, text);
It should look like Andre02(2): text if you used it correctly under the correct function. To get the users ID, use "playerid". I've shown a valid example shown above.
i should add that pawn where under OnPlayerText ? because i copied and pasted the pawn that you added there and it didnt add the ID near the name.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)