/color
#1

hi all...

can anyone fix my code and then explain to me why it doesn't work?

pawn Код:
CMD:color(playerid,params[])
{
    new tempcolor[32];
    format(tempcolor, sizeof tempcolor, "0x%sFF", params);
    strmid(tempcolor, tempcolor, 0, strlen(tempcolor), 32);
    SetPlayerColor(playerid, tempcolor[0]);
    printf("%s",tempcolor[0]); // for debugging
    return 1;
}
Reply


Messages In This Thread
[FIXED] /color - by AiRaLoKa - 14.05.2014, 12:30
Re: /color - by AiRaLoKa - 14.05.2014, 12:38
Re: /color - by Vince - 14.05.2014, 12:49
Re: /color - by AiRaLoKa - 14.05.2014, 12:51
Re: /color - by RajatPawar - 14.05.2014, 12:51
Re: /color - by AiRaLoKa - 14.05.2014, 13:00
Re: /color - by AiRaLoKa - 14.05.2014, 13:11
Re: /color - by Vince - 14.05.2014, 13:22
Re: /color - by Konstantinos - 14.05.2014, 13:44
Re: /color - by AiRaLoKa - 15.05.2014, 00:53

Forum Jump:


Users browsing this thread: 1 Guest(s)