String not showing correctly.
#2

First, Hex color code, starts with 0x and ends with FF, and your color code is HTML

The code below should work, because every HTML color must have a { & } (Bracket)

pawn Код:
for(new i = 0; i < sizeof(FamilyInfo); i++)
{
    if(FamilyInfo[i][FamilyTaken] == 1)
    {
        number ++;
        format(string, sizeof(string), "** {%s} %s{F0F0F0} - Led by %s - Current Members: %d - Family Cookies: 0 - Strikes: %d of 3",FamilyInfo[i][fColor], FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers],FamilyInfo[i][fCookies] ,FamilyInfo[i][FStrikes]);
        SendClientMessage(playerid, COLOR_GRAD6, string);
    }
}
Reply


Messages In This Thread
String not showing correctly. - by ikbenremco - 20.12.2013, 14:43
Re: String not showing correctly. - by Patrick - 20.12.2013, 14:52
Re: String not showing correctly. - by ikbenremco - 20.12.2013, 14:58
Re: String not showing correctly. - by Patrick - 20.12.2013, 15:02
Re: String not showing correctly. - by ikbenremco - 20.12.2013, 15:06
Re: String not showing correctly. - by Patrick - 20.12.2013, 15:11
Re: String not showing correctly. - by ikbenremco - 20.12.2013, 15:17
Re: String not showing correctly. - by Patrick - 20.12.2013, 15:21
Re: String not showing correctly. - by ikbenremco - 20.12.2013, 15:26
Re: String not showing correctly. - by tyler12 - 20.12.2013, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)