SA-MP Forums Archive
Need little help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need little help (/showthread.php?tid=82727)



Need little help - [LNL]Remulis - 20.06.2009

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

Thanks


Re: Need little help - Grim_ - 20.06.2009

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;
}



Re: Need little help - [LNL]Remulis - 20.06.2009

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.


Re: Need little help - Grim_ - 20.06.2009

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



Re: Need little help - [LNL]Remulis - 20.06.2009

Yes i tryed all ready everybody writes same colour ?
why


Re: Need little help - Grim_ - 20.06.2009

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


Re: Need little help - [LNL]Remulis - 20.06.2009

i have put yours everybody write blue


Re: Need little help - woot - 20.06.2009

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;
}



Re: Need little help - Grim_ - 20.06.2009

The problem is already solved.