D: what's what you don't know, how the sql editor works to do that, or what you have to do?
'cause you just have to edit that
![]()
town_id = the id of your town (can check them in the map editor ctrl + p i thing)
and well the posx,y,z are the positions you can also check them in the map editor
use SQL Query for it..
PHP:UPDATE `players` SET `posx`=POS_X, `posy`=POS_Y, `posz`=POS_Z
<?PHP
$pos = array(1000, 1000, 7);
$database = "DIR TO DATABASE FILE"
$db = new SQLiteDatabase($database) or die("Cannot connect DB File.");
$query = @$db->queryExec("UPDATE `players` SET `posx`=".$pos[0].", `posy`=".$pos[1].", `posz`=".$pos[2]);
echo ($query)?:"POSITION UPDATED!":"CANNOT UPDATE PLAYERS :/";
?>
Isn't that a lot "harder" than simply using the manager he has now? :syou can do it easy from PHP level...
if you don't know how do it in manager...PHP:<?PHP $pos = array(1000, 1000, 7); $database = "DIR TO DATABASE FILE" $db = new SQLiteDatabase($database) or die("Cannot connect DB File."); $query = @$db->queryExec("UPDATE `players` SET `posx`=".$pos[0].", `posy`=".$pos[1].", `posz`=".$pos[2]); echo ($query)?:"POSITION UPDATED!":"CANNOT UPDATE PLAYERS :/"; ?>