23.06.2013, 09:05
Heey all,
How can i use GetPlayerColor(playerid) in a string?
Example:
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.
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);
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.