DataRow dRow = null;
using(IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setquery("SELECT * FROM `users` WHERE `id` = @id LIMIT 1");
dbClient.addParameter('id', Id);
dRow = dbClient.getRow();
if(dRow != null)
{
Health = (int)dRow["health"];
Energy = Convert.ToInt32(dRow["energy"]);
Hunger = Convert.ToInt32(dRow["hunger"]);
Kills = Convert.ToInt32(dRow["kills"]);
XP = Convert.ToInt32(dRow["xp"]);
XPdue = Convert.ToInt32(dRow["xpdue"]);
Strength = Convert.ToInt32(dRow["strength"]);
Deaths = Convert.ToInt32(dRow["deaths"]);
Jailed = Convert.ToInt32(dRow["jailed"]);
Dead = Convert.ToInt32(dRow["dead"]);
Job = Convert.ToInt32(dRow["job"]);
Punches = Convert.ToInt32(dRow["punches"]);
Arrests = Convert.ToInt32(dRow["arrests"]);
Noob = Convert.ToInt32(dRow["noob"]);
}
}