SetPlayerColor issue
#7

Quote:
Originally Posted by zDevon
Посмотреть сообщение
I meant if you were to store, instead of the color's value, it's define. I.e storing COLOR_BLUE in PlayerInfo[playerid][pColor].
oh i can't, cause the player can choose their own color, which is why it's stored the way i have it lol but struggling to get my head around the setplayercolor :P

EDIT:

When i try to this:
pawn Код:
stock GetColor(hex)
{
    new
        str[15];

    format(str, sizeof(str), "0x%6x00", hex);
    return str;
}
i get this error: error 035: argument type mismatch (argument 2) but this would give me the value for the correct color due to the string

EDIT:
this can be closed now, i fixed it using << 8 appears to have solved the issue
Reply


Messages In This Thread
SetPlayerColor issue - by Shaneisace - 19.02.2013, 01:25
Re: SetPlayerColor issue - by zDevon - 19.02.2013, 01:58
Re: SetPlayerColor issue - by Shaneisace - 19.02.2013, 02:15
Re: SetPlayerColor issue - by MP2 - 19.02.2013, 02:20
Re: SetPlayerColor issue - by Shaneisace - 19.02.2013, 02:28
Re: SetPlayerColor issue - by zDevon - 19.02.2013, 02:36
Re: SetPlayerColor issue - by Shaneisace - 19.02.2013, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)