OnPlayerText Problem to new Functions ?
#2

You need to shift player color 8 bits right to remove the alpha part, like this:
pawn Код:
format(str, sizeof(str), "{%x}", GetPlayerColor(playerid) >> 8);
If you wanna know how this works:
https://sampwiki.blast.hk/wiki/Binary
https://sampwiki.blast.hk/wiki/Hex
Reply


Messages In This Thread
OnPlayerText Problem to new Functions ? - by DeadLyMann - 07.01.2011, 20:16
Re: OnPlayerText Problem to new Functions ? - by Wyu - 07.01.2011, 21:23
Re: OnPlayerText Problem to new Functions ? - by RyDeR` - 07.01.2011, 21:24
Re: OnPlayerText Problem to new Functions ? - by DeadLyMann - 07.01.2011, 22:34
Re: OnPlayerText Problem to new Functions ? - by Jason_Blink - 11.03.2011, 19:20
Re: OnPlayerText Problem to new Functions ? - by Jason_Blink - 11.03.2011, 19:21
Re: OnPlayerText Problem to new Functions ? - by Kwarde - 11.03.2011, 19:22
Re: OnPlayerText Problem to new Functions ? - by OKStyle - 12.03.2011, 14:33

Forum Jump:


Users browsing this thread: 2 Guest(s)