Newbie Spellweaver
- Joined
- Aug 19, 2008
- Messages
- 98
- Reaction score
- 11
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Oops!
Fixed:
That command gives me 200+ errors later in the codes
Oops!
Fixed:
Code:
case "cancellsell":
{
string owner;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
owner = dbClient.getString("SELECT owner FROM rooms WHERE owner = '" + _Username + "'");
}
if (owner != _Username)
sendData("BK" + "Sorry, but you cannot cancel the sale of someone elses property.");
else
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE rooms SET price = '0', sale = '0' WHERE id = '" + _roomID + "'");
}
sendData("BK" + "You have cancelled sale of this property!");
}
break;
}