Color help
#3

So for example red would be

Normal: FF0000

SA:MP 0xFF0000AA

Correct?


EDIT: no matter what sort of coding I add/remove, seems that this wont work

PHP код:
stock GetPlayerColour(playerid) {
    new 
string[25];
    
format(string,sizeof(string),"{%s}",pStat[playerid][PlayerColour]);
    return 
string;

OR

PHP код:
stock GetPlayerColour(playerid) {
    new 
string[25];
    
format(string,sizeof(string),"{0x%sAA}",pStat[playerid][PlayerColour]);
    return 
string;

Its still the same In game
PHP код:
format(string,sizeof(string),"%s [%s] %s: %s",GetPlayerColour(playerid),GetPlayerNickname(playerid),GetName(playerid),text);
SendClientMessageToAll(0xFFFFFFFF,string
It will print out the color code not the color. Aka colour of the message will stay the same
Reply


Messages In This Thread
Color help - by TwinkiDaBoss - 26.05.2016, 16:10
Re: Color help - by justjamie - 26.05.2016, 16:13
Re: Color help - by TwinkiDaBoss - 26.05.2016, 16:15
Re: Color help - by Dayrion - 26.05.2016, 16:34
Re: Color help - by Konstantinos - 26.05.2016, 16:37
Re: Color help - by Stinged - 26.05.2016, 16:43
Re: Color help - by TwinkiDaBoss - 26.05.2016, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)