String not showing correctly.
#6

Quote:
Originally Posted by ikbenremco
Посмотреть сообщение
I've created this command for debug:

PHP код:
CMD:fcheckcolor(playeridparams[])
{
    new 
family;
    if(
sscanf(params"i"family))
    {
        
SendClientMessage(playeridCOLOR_GREY"/fcolor [familyid]");
        return 
1;
    }
    
format(stringsizeof(string), "Family %d's color is ID {%s}%s"familyFamilyInfo[family][fColor], FamilyInfo[family][fColor]);
    
SendClientMessage(playeridCOLOR_WHITEstring);
    return 
1;

That is working correctly.

I have noticed that you're using FamilyInfo[family][fColor] twice to check the color, I am not sure if this is going to work, but at least give it a try

pawn Код:
for(new i = 0; i < sizeof(FamilyInfo); i++)
{
    if(FamilyInfo[i][FamilyTaken] == 1)
    {
        number ++;
        format(string, sizeof(string), "** {%s}%s %s{F0F0F0} - Led by %s - Current Members: %d - Family Cookies: 0 - Strikes: %d of 3", FamilyInfo[i][fColor], 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)