Need Help Here
#1

hi guys so i just wanted to know how can i do something like this :

Код:
new string[128];
format(string,sizeof(string),"%s",PlayerInfo[playerid][ChatColor]);
SendClientMessage(playerid, string, str);
so i cant use string for COLOR , i want to server get the color from player stats file ! i created a command to change this color so the code should read the player account file and replace chat color with the color of sendclientmssg

here is that command code
Код:
dcmd_ccolor(playerid, params[])
{
    new colord[64];
    if(sscanf(params, "si", colord))
    {
        SendClientMessage(playerid,COLOR_ERROR,"USAGE : /Ccolor (ColorCode 0xRRGGBBAA)");
        return 1;
    }
	format(PlayerInfo[playerid][ChatColor], 10, colord);
	SavePlayer(playerid);
	return 1;
}
Reply


Messages In This Thread
Need Help Here - by PoniStar - 13.11.2018, 16:57
Re: Need Help Here - by JaskaranSingh - 13.11.2018, 17:01
Re: Need Help Here - by PoniStar - 13.11.2018, 17:03
Re: Need Help Here - by d3ll - 13.11.2018, 17:10
Re: Need Help Here - by PoniStar - 13.11.2018, 17:16
Re: Need Help Here - by BiGuy - 13.11.2018, 17:48
Re: Need Help Here - by PoniStar - 13.11.2018, 18:09
Re: Need Help Here - by d3ll - 13.11.2018, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)