Error for owner (me)

Error for owner (me)

Postby Grapejelly1231 » 10 Apr 2013, 22:22

I own a zombie survival server with mcdzienny software, it works great for all my guests and everyone else except for me. Every time I come on I get an error on the console and all of my stats are erased, and I can't even use /whois grapejelly1231 cause it says i'm offline, no stats show up, and it says to use /whowas instead even though I am in the game.

Error:
Spoiler:


If someone could please help me out with this i'd really appreciate it :D.
Grapejelly1231
 
Posts: 4
Joined: 07 Jan 2013, 17:39

Re: Error for owner (me)

Postby ismellike » 10 Apr 2013, 22:37

ismellike wrote:
dzienny wrote:You can use this command. Note that it has to be compiled in VS.

Code: Select all
//
// Coded by dzienny - 2013
//

using System;
using System.Data;
using System.Linq;

namespace MCDzienny
{
    public class CmdSql : Command
    {
        public override string name { get { return "sql"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Nobody; } }

        public override void Use(Player p, string message)
        {
            DataTable queryResults = DBInterface.fillData(message, false);
            if (queryResults.Columns.Count == 0)
            {
                Player.SendMessage(p, "Query executed.");
                return;
            }
            if (queryResults.Rows.Count == 0)
            {
                Player.SendMessage(p, "No results found.");
                return;
            }

            // Display column names.
            string columnNames = String.Join(" | ", queryResults.Columns.Cast<DataColumn>().Select(c => c.ToString()).ToArray());
            Player.SendMessage(p, columnNames);

            // Display rows data.
            foreach (DataRow row in queryResults.Rows)
            {
                string rowItems = String.Join(" | ", row.ItemArray.Select(i => i.ToString()).ToArray());
                Player.SendMessage(p, rowItems);
            }

            queryResults.Dispose();
        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/sql [query] - executes [query] on the server database.");
        }
    }
}


If you want to delete your record:
/sql DELETE FROM Players WHERE Name='Grapejelly1231'


I will upload the dll for you.

www.mediafire.com/?2k544t45pm0kldm

Once you have that downloaded just move it into your extra>commands>dll folder

Then on your server do /cmdload sql

Then use this command-
/sql DELETE FROM Players WHERE Name='Jay53928'

*if your username isnt Jay53928 replace that^



Try this

www.mediafire.com/?2k544t45pm0kldm

Add it to your server like a normal cmd

If you want to delete your record:

/sql DELETE FROM Players WHERE Name='Grapejelly1231'
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: Error for owner (me)

Postby Grapejelly1231 » 11 Apr 2013, 00:30

@ismellike
It worked!! Thanks so much I really appreciate you taking your time to do that for me :D.
Grapejelly1231
 
Posts: 4
Joined: 07 Jan 2013, 17:39

Re: Error for owner (me)

Postby ismellike » 11 Apr 2013, 00:36

You should really thank Dzienny ;) I just gave you the info.
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: Error for owner (me)

Postby dzienny » 13 Apr 2013, 20:13

I haven't even expected that so many people got this error. Well solved ismellike!
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron