Help me out plz
#1

Hello Every one i have problem here in this code when new player join and he is not from my gang or faction i got the login msg does any one can fix this?
PHP код:
               if(PlayerInfo[playerid][pFaction] != 0)
            {
                
format(stringsizeof(string), "*** %s from your faction has logged in."GetPlayerNameEx(playerid));
                   for (new 
0i<MAX_PLAYERS;i++) //edited
                
{
                      if(
== playerid) continue;
                    if(
PlayerInfo[playerid][pFaction] == PlayerInfo[i][pFaction])
                    {
                        
SendClientMessage(iCOLOR_YELLOWstring);
                    }
                }
            }
               if(
PlayerInfo[playerid][pGang] != 225)
            {
                  
format(stringsizeof(string), "*** %s from your gang has logged in."GetPlayerNameEx(playerid));
                   for (new 
0j<MAX_PLAYERS;j++) //edited
                
{
                      if(
== playerid) continue;
                    if(
PlayerInfo[playerid][pGang] == PlayerInfo[j][pGang])
                    {
                        
SendClientMessage(jCOLOR_YELLOWstring);
                    }
                }
            } 
Reply


Messages In This Thread
Help me out plz - by kochtebene - 29.07.2017, 18:27
Re: Help me out plz - by kochtebene - 30.07.2017, 18:25
Re: Help me out plz - by Shinja - 30.07.2017, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)