Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Okay, here's the question. The code below worked fine at any program I made before. But at my last one I get error related to implicit conversion of Void into PlayerIOClient.Client
What's wrong?
#region Start Things
static Client client;
static Connection con;
public static List<string> names = new List<string>();
#endregion
#region values
string world_code = "",
editkey = "",
adminnick;
List<string> admins = new List<string>();
Dictionary<int, string> players = new Dictionary<int, string>();
#endregion
#region Connect Button
private void connect_Click(object sender, EventArgs e)
{
joinWorld(email.Text, password.Text, worldId.Text);
}//connect
private void joinWorld(string email, string password, string worldID)
{
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password, null);
con = client.Multiplayer.JoinRoom(worldId.Text, new Dictionary<string, string>());
con.AddOnMessage(new MessageReceivedEventHandler(OnMessage));
con.Send("init");
con.Send("init2");
}
#endregion
Offline
change
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password, null);
to
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password);
i had that problem before aswell - it worked on a previous project but then failed at the next one
Offline
change
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password, null);
to
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password);
i had that problem before aswell
Thank you very much. Still I wonder why it worked before, though:)
Offline
Why are you using the old DLL?
Offline
You must send init2 once you get the init response.
Offline
[ Started around 1732374101.7033 - Generated in 0.028 seconds, 12 queries executed - Memory usage: 1.42 MiB (Peak: 1.53 MiB) ]