Faction Color.
#2

I got it to work, yet it only shows a black colour in the faction chat no matter what I change it too.

pawn Код:
CMD:factioncolor(playerid, params[])
{
    if(!CheckAdmin(playerid, HIGH_ADMIN_LEVEL)) return NotAuthMSG(playerid);
    new factionid, color;
    if(sscanf(params,"dd", factionid, color)) return SyntaxMSG(playerid, "/factioncolor [factionid] [color]");
    if(!Factions[factionid][fON]) return SCM(playerid, -1, "Invalid faction.");
    Factions[factionid][fColor] = color;
    format(msg, sizeof(msg), "You have changed faction %d color to %d.", factionid, color);
    SCM(playerid, COLOR_GREEN, msg);
    format(query, sizeof(query), "UPDATE `factions` SET `color` = %d WHERE `id` = %d", color, Factions[factionid][fID]);
    mysql_function_query(dbHandle, query, false, "", "");
    return 1;
}
Reply


Messages In This Thread
Faction Color. - by Biess - 28.12.2014, 13:17
Re: Faction Color. - by Biess - 28.12.2014, 14:36
Re: Faction Color. - by Vince - 28.12.2014, 15:08
Re: Faction Color. - by Biess - 28.12.2014, 15:18
Re: Faction Color. - by Biess - 29.12.2014, 19:01
Re: Faction Color. - by Write - 29.12.2014, 19:06
Re: Faction Color. - by Biess - 29.12.2014, 19:09
Re: Faction Color. - by Write - 29.12.2014, 19:14
Re: Faction Color. - by Biess - 29.12.2014, 19:19
Re: Faction Color. - by Write - 29.12.2014, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)