SA-MP Forums Archive
/Factions problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /Factions problem (/showthread.php?tid=527547)



/Factions problem - salev13 - 23.07.2014

What the problem here becuase in the server thats dont say the real amount of members

pawn Код:
CMD:factions(playerid, params[])
{
    new string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    format(string, sizeof(string), "L.S.P.D | Members: %d", FacInfo[1][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Government | Members: %d", FacInfo[2][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Hitman | Members: %d", FacInfo[3][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Sanews | Members: %d", FacInfo[4][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Leone | Members: %d", FacInfo[5][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "F.B.I | Members: %d", FacInfo[6][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "LS E.M.S | Members: %d", FacInfo[7][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "H.S.F | Members: %d", FacInfo[8][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Corleone | Members: %d", FacInfo[9][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Ancelotti | Members: %d", FacInfo[10][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "SWAT | Members: %d", FacInfo[11][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "SATF | Members: %d", FacInfo[12][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "ESF | Members: %d", FacInfo[13][facMembers]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    SendClientMessage(playerid, COLOR_WHITE, "Member counting isn't working good");
    return 1;
}



Re: /Factions problem - William_McKnight - 23.07.2014

What is your FacInfo[1][facMembers] ?


Re: /Factions problem - salev13 - 23.07.2014

Quote:
Originally Posted by William_McKnight
Посмотреть сообщение
What is your FacInfo[1][facMembers] ?
What you mean?


Re: /Factions problem - Stanford - 23.07.2014

Try Fac[0][facMembers] in the first formatting for LSPD


Re: /Factions problem - salev13 - 23.07.2014

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Try Fac[0][facMembers] in the first formatting for LSPD
Alright i will try


Re: /Factions problem - salev13 - 23.07.2014

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Try Fac[0][facMembers] in the first formatting for LSPD
Sorry for spam but still dont work


Re: /Factions problem - IceBilizard - 23.07.2014

its your member count's problem you any one join any faction its not counting correctly.


Re: /Factions problem - Stanford - 23.07.2014

Show us where did you use Fac[anything][facMembers] we might help you.


Re: /Factions problem - William_McKnight - 23.07.2014

Quote:
Originally Posted by salev13
Посмотреть сообщение
What you mean?
I mean, what is your enum for this variable?

Same question:
Quote:
Originally Posted by Stanford
Посмотреть сообщение
Show us where did you use Fac[anything][facMembers] we might help you.