Command
#6

PHP код:
GetNumberOwner(number)
{
    foreach (new 
Player)
        {
              if (
Player[i][PhoneNumber] == number && Player[i][HasPhone] == 1)
          {
             return 
i;
          }
    return 
INVALID_PLAYER_ID;
      }

Brackets are only excluded when you have only 1 statement.

Edit: sorry for bad formatting. idk how did it happen.
Reply


Messages In This Thread
Command - by KinderClans - 21.09.2018, 09:40
Re: Command - by Flamehaze7 - 21.09.2018, 09:53
Re: Command - by GTLS - 21.09.2018, 13:03
Re: Command - by KinderClans - 21.09.2018, 13:25
Re: Command - by kingmk - 21.09.2018, 13:59
Re: Command - by GTLS - 22.09.2018, 07:06
Re: Command - by SyS - 22.09.2018, 07:27
Re: Command - by KinderClans - 22.09.2018, 12:55
Re: Command - by UFF - 22.09.2018, 13:14
Re: Command - by KinderClans - 22.09.2018, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)