Question about a loop
#1

I was wondering if you needed to substitute 'playerid' with "i" in this particular case for every use:

PHP код:
        for(new 0!= MAX_PLAYERS; ++i)
        {
            if(
IsPlayerConnected(i))
            {
                if(
PlayerInfo[playerid][pSongPlaying] == 1)
                {
                    
Stop*******VideoForPlayer(playerid); // so this becomes Stop*******VideoForPlayer(i); or does it stay how it is?
                    
PlayerInfo[playerid][pSongPlaying] = 0;
                    
Play*******VideoForPlayer(i,ylink);
                       
PlayerInfo[playerid][aSongPlaying] = 1;
                }
            }
        } 
Reply


Messages In This Thread
Question about a loop - by K9IsGodly - 11.07.2014, 00:08
Re: Question about a loop - by anou1 - 11.07.2014, 00:49

Forum Jump:


Users browsing this thread: 1 Guest(s)