Always black?
#1

Код:
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?
Reply
#2

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.
Reply
#3

Quote:
Originally Posted by Dan.
Посмотреть сообщение
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.
the samp gives a random color to every player soo?
Reply
#4

There is a fix posted in the wiki like I already mentioned in my previous post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)