String not showing correctly.
#8

Quote:
Originally Posted by ikbenremco
Посмотреть сообщение
This code:

PHP код:
for(new 0sizeof(FamilyInfo); i++) 

    if(
FamilyInfo[i][FamilyTaken] == 1
    { 
        
number ++; 
        
format(stringsizeof(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(playeridCOLOR_GRAD6string);
    }

That code doesn't make sense.

It's now not displaying the family's name? Because you added one more FamilyINfo[i][fColor] Variable.
It does, let me elaborate this.

Placeholder
  • First %s inside a bracket( { & } ) = HTML Color Code.
  • Second %s = HTML Color code. (Experiment, from previous code you had)
  • Third %s = Family Name.
It's a debug, because I wanted to know if it shows the right html code you placed, because at the moment it returns Null

The message should look like this.
Код:
** /*Color Violet*/ C7B1E6 /*Color White*/ SAMP_Family - Led by: pds2k12 - Current Members: 2012 - Family Cookies: 2012 - Strikes: 0 of 3
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)