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
#2

No One ?
Reply
#3

Or he is from your faction/gang (debug it to know), or you are sending the string somewhere else in the script
Try to debug you vars PlayerInfo[playerid][pFaction] and PlayerInfo[i][pFaction]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)