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
Topic closed
This code worked before but now my bot doesn't even connect. It doesn't throw an error or anything.
public static Connection conn;
public static Client client;
public static List<string> names = new List<string>();
public static string worldKey = "";
public static void Main (string[] args)
{
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password, null);
conn = client.Multiplayer.JoinRoom("PWYKcYsvCxbkI", null);
conn.OnMessage += OnMessage;
Console.Read();
}
static void OnMessage(object sender, PlayerIOClient.Message m) //your onmessage goes here
{
switch (m.Type) {
case "init":
conn.Send ("init2");
worldKey = derot(m.GetString(5));
conn.Send (worldKey + "k");
return;
}
}
Offline
public static Connection conn;
public static Client client;
public static List<string> names = new List<string>();
public static string worldKey = "";
public static void Main (string[] args)
{
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password, null);
conn = client.Multiplayer.JoinRoom("PWYKcYsvCxbkI", null);
conn.OnMessage += OnMessage;
conn.Send("init");
Console.Read();
}
static void OnMessage(object sender, PlayerIOClient.Message m) //your onmessage goes here
{
switch (m.Type) {
case "init":
conn.Send ("init2");
worldKey = derot(m.GetString(5));
conn.Send (worldKey + "k");
return;
}
}
You forgot: conn.Send("init");
Everybody edits, but some edit more than others
Offline
No I didn't... it is after conn.OnMessage += OnMessage;
Offline
No I didn't... it is after conn.OnMessage += OnMessage;
I don't see it in your post.
but it is in zumzas
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
My apologies, I was looking at your not mine.
Offline
Thank you.
Offline
Pages: 1
Topic closed
[ Started around 1732824563.9087 - Generated in 0.108 seconds, 12 queries executed - Memory usage: 1.41 MiB (Peak: 1.52 MiB) ]