Command Help
#1

Hey boys i created a command /factions with online faction members but when i use it and i invite my self to a faction and i do /factions it shows me like all factions have 1 player but i am only online.


Codes

PHP код:
COMMAND:factions(playeridparams[])
{
new 
string[90],count=0;
for(new 
i=0;i<MAX_PLAYERS;i++)
{
    if(
PlayerInfo[i][playerteam] == COPScount++;
}
format(stringsizeof(string), "Los Santos Police Department:Members [%d/45]"count);
SendClientMessage(playerid, -1string);
for(new 
i=0;i<MAX_PLAYERS;i++)
{
    if(
PlayerInfo[i][playerteam] == FBIcount++;
}
format(stringsizeof(string), "FBI Online Members:[%d/45]",count);
SendClientMessage(playerid, -1string);
for(new 
i=0;i<MAX_PLAYERS;i++)
{
    if(
PlayerInfo[i][playerteam] == CORLEONEcount++;
}
format(stringsizeof(string), "Corleone Online Members:[%d/45]",count);
SendClientMessage(playerid, -1string); 
Reply


Messages In This Thread
Command Help - by Diti1 - 03.12.2014, 12:26
Re: Command Help - by xCrazyMonkey - 03.12.2014, 12:31
Re: Command Help - by Diti1 - 03.12.2014, 12:40
Re: Command Help - by xCrazyMonkey - 03.12.2014, 13:08
Re: Command Help - by Diti1 - 03.12.2014, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)