Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } elseif ($_GET['block']) {
- $result = @mysqli_query($mysqli_link, "SELECT block_id FROM blocked WHERE block_id='$account_id' AND player_id='$player_id' LIMIT 1")or die("Cannot double-check blocks! " . @mysqli_error($mysqli_link));
- $row = @mysqli_fetch_array($result);
- if ($row['block_id']) {
- myError("This player is already blocked!");
- } else {
- @mysqli_query($mysqli_link, "INSERT INTO blocked(block_id, player_id) VALUES('$account_id', '$player_id')")or die("Cannot block player! " . @mysqli_error($mysqli_link));
- myError("Player blocked!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement