Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Help Ready Battle
#1
what is wrong with this?
Please help meSad
@PROGRAMMATOR
@Awiion
[IMG][Изображение: image.png]upload gifs[/IMG]
Ответ
#2
bad code identation at final of code, also post complete code on pastebin, developers still don't has developed technology of crystal ball.
Ответ
#3
At first we should find out where are the odd brackets from }}.
Then need to add property _playerList because probably:

Цитата:The name '_playerList' does not exist in the current context

And the code must be written in C# style as you work with it.

[SRC="csharp"]private IList<Account> accounts = new List<Account>();

/// <summary>
/// Account join to room
/// </summary>
/// <param name="account"></param>
public void Join(Account account)
{
// ...

accounts.Add(account);

// ...
}

/// <summary>
/// Get accounts by SlotState
/// </summary>
/// <param name="state"></param>
/// <returns></returns>
public IEnumerable<Account> GetAccounts(SlotState state)
{
return Accounts.Where(x => x.Slot.HasState(state));
}

/// <summary>
/// Ready battle request
/// </summary>
/// <param name="account"></param>
public void ReadyBattleRequest(Account account)
{
// ...

if (slot.HasState(SlotState.Normal))
{
account.SetState(SlotState.Ready);
}
else
{
account.SetState(SlotState.Normal);
}

// ...
}
[/SRC]


And use:

[SRC="csharp"]var accounts = GetAccounts(SlotState.Ready);
[/SRC]
Ответ
#4
XRoro,
Part[2]
Разработка Emu: PiercingBlow 90%, APB Reloaded 100%.
Самый действенный инструмент для самообучения - грабли.
Ответ
#5
thanks for all your help Big Grin
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  V42 Battle Bug ChunkyHunt 0 1,599 10-10-2018, 09:08 AM
Последний пост: ChunkyHunt
  UDP3 Start battle ManuelDev 3 2,256 05-21-2018, 08:49 PM
Последний пост: ManuelDev
  how to fix ? Client IP LAN Join Room Client Start Battle Can not Respawn bmzproject 1 1,700 01-17-2018, 12:47 AM
Последний пост: PROGRAMMATOR
  Battle Weapon Issue bola 10 2,819 11-13-2016, 02:27 AM
Последний пост: bola
  Start Battle Aluucard 1 2,052 03-02-2016, 12:59 AM
Последний пост: PROGRAMMATOR
  BATTLE Camera Game mode Exile03 9 2,321 02-08-2016, 06:43 PM
Последний пост: Exile03

Перейти к форуму:


Пользователи, просматривающие эту тему: 3 Гость(ей)