Always black? - 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)
+--- Thread: Always black? (
/showthread.php?tid=583730)
Always black? -
Fancy - 30.07.2015
Код:
new ChatBubble[MAX_CHATBUBBLE_LENGTH+1];
new Chats[MAX_CHATBUBBLE_LENGTH+1];
format(ChatBubble,MAX_CHATBUBBLE_LENGTH,"%s",text);
format(Chats,MAX_CHATBUBBLE_LENGTH,"{%06x}%s(%d):{FFFFFF}%s",GetPlayerColor(playerid) >>> 8,GetName(playerid),playerid,text);
SetPlayerChatBubble(playerid,ChatBubble,MESSAGE_COLOR,35.0,10000);
SendClientMessageToAll(0xFFFFFFFF, Chats);
The player name is always black,why?
Re: Always black? -
Dan. - 30.07.2015
Because you haven't used SetPlayerColor. It's also made red in SA-MP wiki, for people like you:
https://sampwiki.blast.hk/wiki/GetPlayerColor
There is also a fix posted in the wiki.
Re: Always black? -
Fancy - 30.07.2015
Quote:
Originally Posted by Dan.
|
the samp gives a random color to every player soo?
Re: Always black? -
Dan. - 30.07.2015
There is a fix posted in the wiki like I already mentioned in my previous post.