Hi!
My teleport function will not work...
What did I wrong?
Here's the php code in the teleport place (Eldeon)
Here's a picture too:
It shows that it works but when I start Rose I'm not there I teleported me... HELP!
My teleport function will not work...
What did I wrong?
Here's the php code in the teleport place (Eldeon)
I used the "class changer" place.<?php
if(isset($_POST['submit'])) {
$results = mysql_query("SELECT * FROM characters WHERE respawnid = '".$_SESSION['accounts']."' and char_name = '".$_GET['char']."'");
$rows = mysql_fetch_array($results);
if($rows['account_name'] != $_SESSION['accounts']) {
die('This is not your character!');
}
if($rows['char_name'] != $_GET['char']) {
die('This is not your character!');
}
$result = mysql_query("UPDATE characters SET respawnid = '".$_POST['select']."' WHERE char_name = '".$_GET['char']."'");
if(!$result) {
echo('<p class="b01">Cannot teleport!</p>');
} else {
echo('<p class="b01">Teleport successfull!</p>');
}
}
?>
Here's a picture too:
To view the content, you need to sign in or register
It shows that it works but when I start Rose I'm not there I teleported me... HELP!