nanduzenho
Member
Good morning, I've implemented a sell character system, but I came across this error and I can't solve it. can anybody help me?
sellcharacter.php
sellcharacter.php
PHP:
$select_player_bank = function ($id) use ($config, $SQL, $account_logged) {
$req = valida_multiplas_reqs(); <<<------ This line is 325
if ($req) {
if ($id > 0) {
$val = $SQL->query("SELECT * FROM players WHERE id = $id AND account_id = {$account_logged->getID()}")->fetchAll();
if (count($val) > 0) {
$q = $SQL->prepare("UPDATE accounts SET player_sell_bank = $id WHERE id = {$account_logged->getID()}");
$q->execute();
$data = getStatus(false, 'You have successfully updated the player. If you sell any character via Gold, the gold will be delivered to him.');
return json_encode($data);
} else {
$data = getStatus(TRUE, 'This player does not belong to you.');
return json_encode($data);
}
} else {
$data = getStatus(TRUE, 'Select a player!');
return json_encode($data);
}
} else {
$data = getStatus(TRUE, "Maximum number of requests per minute reached.");
return json_encode($data);
}
};