Exemplo n.º 1
0
    private void method_19(GClass283 gclass283_0)
    {
        GClass284 gclass = new GClass284(0, 134, 4, false);

        if (gclass.int_0 == gclass283_0.int_0 && gclass.int_1 == gclass283_0.int_1)
        {
            if (gclass.int_2 == gclass283_0.int_2)
            {
                gclass.bool_0 = true;
                goto IL_4A;
            }
        }
        gclass.bool_0 = false;
IL_4A:
        if (!gclass.bool_0)
        {
            MessageBox.Show(string.Format("PErkava doesn't yet support this client version.\r\nLocal: {0}.{1}.{2}\r\nRemote: {3}.{4}.{5}", new object[]
            {
                gclass.int_0,
                gclass.int_1,
                gclass.int_2,
                gclass283_0.int_0,
                gclass283_0.int_1,
                gclass283_0.int_2
            }));
            return;
        }
        this.gclass84_0.SendMessage(gclass);
    }
Exemplo n.º 2
0
        internal void method_7(bool bool_0, int int_0, int int_1, int int_2)
        {
            GClass283 gclass = new GClass283(0, 134, 4);

            if (bool_0 && gclass.int_0 == int_0 && gclass.int_1 == int_1 && int_2 == gclass.int_2)
            {
                this.SendMessage(new GClass254());
                return;
            }
            this.Socket.Disconnect(ErrorReason.VersionMismatch, new Exception(string.Format("client version: {0}.{1}.{2}; remote {3}.{4}.{5}", new object[]
            {
                gclass.int_0,
                gclass.int_1,
                gclass.int_2,
                int_0,
                int_1,
                int_2
            })), false);
        }