/accId Command. Need help
Ok so. I'm making a /accId command. I just don't know what line that i need to put in for the game to read your accid. Right now i've just come to the part to actually just write in a name. But i can't manage to make it read the accid line without changing it. Could I get any help from you?
(The lines i'm using rn)
Code:
player.Manager.Database.DoActionAsync(db =>
{
var cmd = db.CreateQuery();
cmd.CommandText = "GOTO `accounts` READ `name`=@name WHERE accId";
cmd.Parameters.AddWithValue("@accId", args[1]);
cmd.Parameters.AddWithValue("@name", args[0]);
if (cmd.ExecuteNonQuery() == 0)
{
player.SendError("Error reading accId!");
}
else
{
player.SendInfo(args[0] + " 's accId is" + args[1])
I'm testing this rn. I don't think it will work. I will edit and say.