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


Messages In This Thread
GetPlayerColor in string? - by Admigo - 23.06.2013, 09:05
Re: GetPlayerColor in string? - by dEcooR - 23.06.2013, 09:45
Re: GetPlayerColor in string? - by Admigo - 23.06.2013, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)