Official Everybody Edits Forums

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.

#1 2015-08-17 18:38:51

MikeK
Member
From: Earth
Joined: 2015-03-13
Posts: 25

[Question] Seems to work properly, but it doesn't

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

FluxBB bbcode test

Offline

#2 2015-08-17 18:41:29, last edited by Br0k3n (2015-08-17 18:45:55)

Br0k3n
Member
From: Serbia
Joined: 2015-04-04
Posts: 1,451

Re: [Question] Seems to work properly, but it doesn't

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


?type=online&name=br0k3n ?type=lastlogin&name=br0k3n ?type=loginstreak&name=br0k3n

76561198080960604.png

Offline

Wooted by:

#3 2015-08-17 18:45:48

MikeK
Member
From: Earth
Joined: 2015-03-13
Posts: 25

Re: [Question] Seems to work properly, but it doesn't

Br0k3n wrote:

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:)


FluxBB bbcode test

Offline

Wooted by:

#4 2015-08-17 19:29:52

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Question] Seems to work properly, but it doesn't

Why are you using the old DLL?

Offline

Wooted by:

#5 2015-08-17 20:05:50

John
Member
Joined: 2019-01-11
Posts: 2,009

Re: [Question] Seems to work properly, but it doesn't

You must send init2 once you get the init response.


PW?scale=2

Offline

Wooted by:
John1439838350531356

Board footer

Powered by FluxBB

[ Started around 1732364876.5594 - Generated in 0.044 seconds, 12 queries executed - Memory usage: 1.42 MiB (Peak: 1.53 MiB) ]