Quote:
Originally Posted by ikbenremco
This code:
PHP код:
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);
}
}
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