PHP Code:
for (byte b2 = 0; b2 < 13; b2 += 1)
{
PokerCard pokerCard = new PokerCard();
pokerCard.Id = b2 + 13 * b;
pokerCard.Typ = typ;
pokerCard.Val = b2;
this.Cards.Add(pokerCard.Id, pokerCard);
}
}
PHP Code:
public uint GetNextSeat(byte Seat, bool Next)
{
uint result;
try
{
System.Collections.Generic.Dictionary<byte, PokerPlayer> seats = this.Seats;
byte b = Seat + 1;
bool flag = false;
while (!flag)
{
if (seats.ContainsKey(b))
{
if (seats[b].RoundState != 4 && seats[b].Connected)
{
break;
}
}
b += 1;
if (b > 9)
{
b = 0;
}
}
uint playerId = seats[b].PlayerId;
if (playerId == this._StartingPlayer && Next)
{
this.RoundStage += 1;
}
result = playerId;
}
catch (System.Exception ex)
{
PhoenixProject.Console.WriteLine(ex.ToString());
result = 0u;
}
return result;
}
andQuote:
pokerCard.Id = b2 + 13 * b;
the error isQuote:
byte b = Seat + 1;
PHP Code:
Error 1 Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?)