Hey, i again stuck in some probably easy thing and need help.
I need Connection list with all who is on server, like this:
But like on screen, insim is copying only one player name, wont show all players and close buttons without player.
I think i do everything wrong but, maybe someone know how to fix it.
Part of code:
I need Connection list with all who is on server, like this:
But like on screen, insim is copying only one player name, wont show all players and close buttons without player.
I think i do everything wrong but, maybe someone know how to fix it.
Part of code:
bool Found = false;
foreach (clsConnection i in Connections)
{
if (i.InGame == 1)
{
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 125, 3, 190, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 128, 3, 191, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 131, 3, 192, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 134, 3, 193, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 137, 3, 194, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 140, 3, 195, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 143, 3, 196, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 146, 3, 197, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 149, 3, 198, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 152, 3, 199, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 155, 3, 200, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 158, 3, 201, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 161, 3, 202, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 164, 3, 203, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 167, 3, 204, i.UniqueID, 2, false);
}
}
else if (i.InGame == 0)
{
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 125, 3, 190, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 128, 3, 191, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 131, 3, 192, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 134, 3, 193, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 137, 3, 194, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 140, 3, 195, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 143, 3, 196, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 146, 3, 197, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 149, 3, 198, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 152, 3, 199, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 155, 3, 200, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 158, 3, 201, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 161, 3, 202, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 164, 3, 203, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 167, 3, 204, i.UniqueID, 2, false);
}
}
}