color help
#1

Hello i wand do color just to this string but when i join to the server and type my cmd i see all green






my code

pawn Код:
CMD:pinfo(playerid,params[])
{
  new id;
  if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "UnKnown Command! Type /help");
  if(sscanf(params,"u", id)) return SCM(playerid, RED, "Get some info about a player: /pinfo <playerid>");
  if(!IsPlayerConnected(playerid)) return SCM(playerid, RED, "Player is not connected");
  new b_name[MAX_PLAYER_NAME], p_ip[25], str1[1000];
  GetPlayerName(playerid, b_name,sizeof (b_name));
  GetPlayerIp(playerid, p_ip,sizeof (p_ip));
  format(str1,sizeof (str1),"Player name: {27FF0A}%s\nPlayer ip: %s\nPlayer Money: $%i\nPlayer ping: %i",b_name, p_ip, GetPlayerMoney(playerid), GetPlayerPing(playerid));
  ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "{27FF0A}Info",str1,"Ok","");
  return 1;
}
Reply
#2

Try rhis :

PHP код:
CMD:pinfo(playerid,params[])
{
  new 
id;
  if(!
IsPlayerAdmin(playerid)) return SCM(playeridRED"UnKnown Command! Type /help");
  if(
sscanf(params,"u"id)) return SCM(playeridRED"Get some info about a player: /pinfo <playerid>");
  if(!
IsPlayerConnected(playerid)) return SCM(playeridRED"Player is not connected");
  new 
b_name[MAX_PLAYER_NAME], p_ip[25], str1[1000];
  
GetPlayerName(playeridb_name,sizeof (b_name));
  
GetPlayerIp(playeridp_ip,sizeof (p_ip));
  
format(str1,sizeof (str1),"{FFFFFF}Player name: {27FF0A}%s\n{FFFFFF}Player ip: {27FF0A}%s\n{FFFFFF}Player Money: {27FF0A}$%i\n{FFFFFF}Player ping: {27FF0A}%i",b_namep_ipGetPlayerMoney(playerid), GetPlayerPing(playerid));
  
ShowPlayerDialog(playerid12DIALOG_STYLE_MSGBOX"{27FF0A}Info",str1,"Ok","");
  return 
1;

Quote:

{FFFFFF} Is white color

If help please give me the REP+
Reply
#3

Quote:
Originally Posted by VenomMancer
Посмотреть сообщение
Try rhis :

PHP код:
CMD:pinfo(playerid,params[])
{
  new 
id;
  if(!
IsPlayerAdmin(playerid)) return SCM(playeridRED"UnKnown Command! Type /help");
  if(
sscanf(params,"u"id)) return SCM(playeridRED"Get some info about a player: /pinfo <playerid>");
  if(!
IsPlayerConnected(playerid)) return SCM(playeridRED"Player is not connected");
  new 
b_name[MAX_PLAYER_NAME], p_ip[25], str1[1000];
  
GetPlayerName(playeridb_name,sizeof (b_name));
  
GetPlayerIp(playeridp_ip,sizeof (p_ip));
  
format(str1,sizeof (str1),"{FFFFFF}Player name: {27FF0A}%s\n{FFFFFF}Player ip: {27FF0A}%s\n{FFFFFF}Player Money: {27FF0A}$%i\n{FFFFFF}Player ping: {27FF0A}%i",b_namep_ipGetPlayerMoney(playerid), GetPlayerPing(playerid));
  
ShowPlayerDialog(playerid12DIALOG_STYLE_MSGBOX"{27FF0A}Info",str1,"Ok","");
  return 
1;


If help please give me the REP+
Thanks ill give u rep =)
Reply
#4

Quote:
Originally Posted by Another1
Посмотреть сообщение
Thanks ill give u rep =)
Your wellcome
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)