Wrongs Messages
#3

Quote:
Originally Posted by Michael B
Посмотреть сообщение
Try this code:

PHP код:
CMD:changecolor(playeridparams[])
{
    
SetPlayerColor(playeridRandomColors[random(200)]);
    
SendClientMessage(playerid0xFFFFFFFF"{%06x}You have successfully changed your color to this message's color.",GetPlayerColor(playerid));
      return 
1;

yea but the color "{%06x}" will not be displayed because its format anyway it was SendClientMessageToAll I changed it and its working now but I have another problem

I have this

Код:
	format(string, 15, "%s", pName(playerid));
	TextDrawSetString(Text:nameTD, string);
	TextDrawShowForPlayer(playerid, nameTD);
when you join its working perfectly but when another player joins it display his name

and the stock of pName

Код:
stock pName(playerid)
{
	new GetName[24];
	GetPlayerName(playerid, GetName, 24);
	return GetName;
}
Reply


Messages In This Thread
Wrongs Messages - by SecretBoss - 09.07.2015, 08:13
Re: Wrongs Messages - by Michael B - 09.07.2015, 08:21
Re: Wrongs Messages - by SecretBoss - 09.07.2015, 08:24
Re: Wrongs Messages - by Michael B - 09.07.2015, 08:40
Re: Wrongs Messages - by SecretBoss - 09.07.2015, 08:42
Re: Wrongs Messages - by Michael B - 09.07.2015, 08:48
Re: Wrongs Messages - by SecretBoss - 09.07.2015, 08:55
Re: Wrongs Messages - by Michael B - 09.07.2015, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)