Chat with players ID [help rep+]
#1

How i can make players say playerid = players name ?

Putative:

ID 0 is Sido
ID 1 is Ava
...etc.

if players say player ID on chat

putative: Hello id0 or Hello id 0 = Hello Sido

That example
Reply
#2

try this?

pawn Код:
public OnPlayerText(playerid, text[])
{
    new pName[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, pName,sizeof(pName));
    format(string,sizeof(string),"%s[%i]: %s",pName,playerid,text);
    printf(string);
    SendClientMessageToAll(COLOR_WHITE,string);
    return 0;
}
Reply
#3

Quote:
Originally Posted by AzaMx
Посмотреть сообщение
try this?

pawn Код:
public OnPlayerText(playerid, text[])
{
    new pName[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, pName,sizeof(pName));
    format(string,sizeof(string),"%s[%i]: %s",pName,playerid,text);
    printf(string);
    SendClientMessageToAll(COLOR_WHITE,string);
    return 0;
}
Nope not this i mean when players say playerid will replacement to player name !
Reply
#4

Did you mean this?

pawn Код:
public OnPlayerText(playerid, text[])
{
  new string[128];
  format(string, sizeof(string), "[%d] %s",playerid,text);
  SendPlayerMessageToAll(playerid,string);
  return 0;
}
Reply
#5

Quote:
Originally Posted by AzaMx
Посмотреть сообщение
Did you mean this?

pawn Код:
public OnPlayerText(playerid, text[])
{
  new string[128];
  format(string, sizeof(string), "[%d] %s",playerid,text);
  SendPlayerMessageToAll(playerid,string);
  return 0;
}
Nope :3, putative id 1 name is Paul, When players say Hey id1 will be Hey Paul like that !
Reply
#6

You could explain in better way..
Reply
#7



NEVER MIND THIS FEATURE
Reply
#8

Maybe you could stop facepalming and fix your damn English.

And what the fuck is "NEVERMIND THIS FEATHER"
Reply
#9

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Maybe you could stop facepalming and fix your damn English.

And what the fuck is "NEVERMIND THIS FEATHER"
Great answer.
Reply
#10

I mean feature -3-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)