id next to nick
#1

How do I get the id of the player next to his nick? example [TRR] Dark (id: 0)
Tanks
Reply
#2

Under OnPlayerText callback

pawn Код:
new  msg[128],tPlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, tPlayerName, MAX_PLAYER_NAME);
    format(msg, sizeof(msg), "%s: (%d) {FFFFFF}%s", tPlayerName, playerid, text);
Reply
#3

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
Under OnPlayerText callback

pawn Код:
new  msg[128],tPlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, tPlayerName, MAX_PLAYER_NAME);
    format(msg, sizeof(msg), "%s: (%d) {FFFFFF}%s", tPlayerName, playerid, text);
Do not I get the id
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)