04.03.2010, 11:38
Hello,
When a player talks on my server i want it to show there ID aswell as name and text,
So i just wrote this piece of code that i thought would work, But it dosent seem to be,
Ingame if i talk it dosent show a thing,
If i change return 0; to return 1; It shows what i say as it normally would
When a player talks on my server i want it to show there ID aswell as name and text,
So i just wrote this piece of code that i thought would work, But it dosent seem to be,
pawn Код:
public OnPlayerText(playerid, text[])
{
new playername;
new string[300];
new name[MAX_PLAYER_NAME];
playername = GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "(%d): %s", playerid, text);
SendPlayerMessageToAll(playername, string);
return 0;
}
Ingame if i talk it dosent show a thing,
If i change return 0; to return 1; It shows what i say as it normally would