Quote:
Originally Posted by [K4L
Leopard ]
Quote:
Originally Posted by (FF)TeddyBear
Quote:
Originally Posted by [K4L
Leopard ]
Quote:
Originally Posted by sk1llz
Quote:
Originally Posted by JeNkStAX
Post your code
|
Код:
public OnPlayerText(playerid, text[])
{
new string[128];
format(string, sizeof(string), "[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
|
Код:
public OnPlayerText(playerid, text[])
{
new string[128], pName[24];
GetPlayerName(playerid, pName, 24); //gets player name
format(string, sizeof(string), "%s [ID: %d]",pName, playerid); //formats name ("Leopard [ID: 0]")
SetPlayerName(playerid, string);
SendPlayerMessageToAll(playerid,text);
SetPlayerName(playerid, pName); //sets player name back to original
return 0;
}
brett7's and Jenksta's code will output: "Leopard: Leopard(ID: 0) <text>"
Mine will probably do what you want.
|
Yours won't work.
|
Why? give reasons why it won't work. I'm pretty sure it will.
Also he said
Quote:
Originally Posted by sk1llz
default server messages are:
sk1llz: bla bla bla bla
but i need this:
sk1llz[ID ?]: bla bla bla bla
|
Notice he want the id BEFORE the colons (
|
Well I gave your one a try cuz im bored, and the output would be like so,
[FF]TeddyBear: ahem
[FF]TeddyBear: ahem
Comes out twice, no id in the name.
Also jenksta's or whoevers comes out like so,
[FF]TeddyBear: Ahem
[FF]TeddyBear:[0] Ahem
Does the id this time but repeats the sentence twice in the chat.