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.
Pages: 1
Hello! I am Gooberg123 in-game and I am creating a rather complicated bot that will make life easier for me.
I am having trouble with the connection though
Here's my code:
private void Connect_button_Click(object sender, EventArgs e)
{
CheckForIllegalCrossThreadCalls = false;
if (!isConnected)
{
try
{
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", Email_textBox.Text, Password_textBox.Text);
con = client.Multiplayer.CreateJoinRoom(WorldID_textBox.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>());
con.Send("init");
con.Send("init2");
con.OnMessage += new MessageReceivedEventHandler(handlemsg);
isConnected = true;
Connect_button.Text = "Disconnect";
Here is my error:
No overload for method "SimpleConnect" takes 3 arguments
Please get back soon
And thanks (I bet it's something really easy and/or dumb
Owner of GooCrew
GooCrew Worlds:
GooCrew Art World
Offline
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", Email_textBox.Text, Password_textBox.Text , null);
You need
, null
at the end.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Thanks so much for the help and the quick reply.
Owner of GooCrew
GooCrew Worlds:
GooCrew Art World
Offline
Also, don't put con.Send("init2"); after con.Send("init"); Do:
if (m.Type == "init") {
con.Send("init2");
}
Offline
It seems like a dumb fix, but sometimes the server misbehaves and skips out on sending the init values.
(what? Server misbehaves? No, you're just not doing it right? -- that's what you want to say. But answer me this -- on what conditions would the server NOT need to send the additional init values?)
Those who can't do, teach.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
It is a well-known fact that those people who must want to rule people are, ipso facto, those least suited to do it... anyone who is capable of getting themselves made President should on no account be allowed to do the job.
I think fish is nice, but then I think that rain is wet, so who am I to judge?
For a moment, nothing happened. Then, after a second or so, nothing continued to happen.
Offline
Pages: 1
[ Started around 1715778551.5 - Generated in 0.030 seconds, 10 queries executed - Memory usage: 1.44 MiB (Peak: 1.55 MiB) ]