GetPlayerColor in string?
#1

Heey all,

How can i use GetPlayerColor(playerid) in a string?
Example:
pawn Код:
format(globalstring, sizeof(globalstring), "[chat]{%06x}%s(%d){FFFFFF}: %s", GetPlayerColor(playerid)>>> 8,GetPlayeridName(playerid),playerid, text);
SendClientMessageToAll(COLOR_WHITE,globalstring);
So the %h returns the hex color.
This one dont returns the color good and shows a part of hex code in message.

Admigo

EDIT: Fixed by myself. Edited my code for players who want this.
Reply
#2

maybe make format string and then put the return GetPlayerColor(); or?
Reply
#3

Quote:
Originally Posted by dEcooR
Посмотреть сообщение
maybe make format string and then put the return GetPlayerColor(); or?
I already fixed this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)