28.07.2014, 09:39
Hi,
I have a problem where on /factions it shows but the Members says something like 48 here is my code:
it says on the first one
1. Los Santos Police Department | Leader: None | Members: 48
I have a problem where on /factions it shows but the Members says something like 48 here is my code:
pawn Код:
CMD:factions(playerid, params[])
{
new string[678];
SendClientMessage(playerid, COLOR_ORANGE, "___ FACTIONS OF QUANTUM GAMING NETWORK ___");
format(string,sizeof(string),"1. %s | Leader: %s | Members: %d", FactionInfo[0][FactionName], FactionInfo[0][FactionLeader], FactionInfo[0][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"2. %s | Leader: %s | Members: %d", FactionInfo[1][FactionName], FactionInfo[1][FactionLeader], FactionInfo[1][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"3. %s | Leader: %s | Members: %d", FactionInfo[2][FactionName], FactionInfo[2][FactionLeader], FactionInfo[2][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"4. %s | Leader: %s | Members: %d", FactionInfo[3][FactionName], FactionInfo[3][FactionLeader], FactionInfo[3][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"5. %s | Leader: %s | Members: %d", FactionInfo[4][FactionName], FactionInfo[4][FactionLeader], FactionInfo[4][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"6. %s | Leader: %s | Members: %d", FactionInfo[5][FactionName], FactionInfo[5][FactionLeader], FactionInfo[5][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"7. %s | Leader: %s | Members: %d", FactionInfo[6][FactionName], FactionInfo[6][FactionLeader], FactionInfo[6][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"8. %s | Leader: %s | Members: %d", FactionInfo[7][FactionName], FactionInfo[7][FactionLeader], FactionInfo[7][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"9. %s | Leader: %s | Members: %d", FactionInfo[8][FactionName], FactionInfo[8][FactionLeader], FactionInfo[8][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,sizeof(string),"10. %s | Leader: %s | Members: %d", FactionInfo[9][FactionName], FactionInfo[9][FactionLeader], FactionInfo[9][FactionMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
1. Los Santos Police Department | Leader: None | Members: 48