Need little help
#1

Hi, Can You tell me how to make when someone write in chat gives like ' Remulis [9] : Hi' Thats like id 9

Thanks
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
  new str[128], name[24];
  GetPlayerName(playerid, name, sizeof name);
  format(str, sizeof str, "%s[%i]: %s", name, playerid, text);
  SendClientMessageToAll(color, str);
  return 0;
}
Reply
#3

C:\Users\Remulis\Desktop\Scriptinti\GM2.pwn(984) : error 017: undefined symbol "color"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

pick any color you wish, any ways here's one
pawn Код:
#define color 0x0000AAFF
Reply
#5

Yes i tryed all ready everybody writes same colour ?
why
Reply
#6

Not everyone uses the same color, I just use that one because that's the only one I can remember.
Reply
#7

i have put yours everybody write blue
Reply
#8

pawn Код:
public OnPlayerText(playerid, text[])
{
  new str[128], name[24];
  GetPlayerName(playerid, name, sizeof name);
  format(str, sizeof str, "%s[%i]: %s", name, playerid, text);
  SendClientMessageToAll(GetPlayerColor(playerid), str);
  return 0;
}
Reply
#9

The problem is already solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)