QueryResult *result = sDatabase.PQuery("SELECT `in_arena` FROM `pvp_cmd_data` WHERE `id` = '%d'", chr->GetGUIDLow()); if(result) { Field *fields = result->Fetch(); uint32 inarena = fields[0].GetUInt32(); if (inarena == 1) { sDatabase.PExecute( "UPDATE SET `time` =%d WHERE `playerid`= %d", time(NULL), chr->GetGUIDLow()); sDatabase.PExecute( "UPDATE SET `in_arena` =0 WHERE `playerid`= %d", chr->GetGUIDLow()); SendSysMessage("You did not leave the arena, restting cooldown"); return true; }