what about accounts?I made a flexible function to fetch information from players table.
PHP:<?php // Select which parameters you want, this example: fetch player name and vocation from players table (based on player id). $data = user_character_data($charid, 'name', 'vocation'); echo $data['name']; // Result: playername echo $data['vocation'] // Result: 1 (if its a sorcerer, etc...). ?>
what about accounts?
Notice: Undefined index: is_player in C:\xampp\htdocs\deaths.php on line 12
Notice: Undefined index: killed_by in C:\xampp\htdocs\deaths.php on line 13
Player Level Killed by
Kirito 11
<?php
// Select which parameters you want, this example: fetch player name and vocation from players table (based on player id).
$data = user_character_data($charid, 'name', 'vocation');
echo $data['name']; // Result: playername
echo $data['vocation'] // Result: 1 (if its a sorcerer, etc...).
?>
so? how can i fix this?
Code:Notice: Undefined index: is_player in C:\xampp\htdocs\deaths.php on line 12 Notice: Undefined index: killed_by in C:\xampp\htdocs\deaths.php on line 13 Player Level Killed by Kirito 11
i add this on user.php?
Code:<?php // Select which parameters you want, this example: fetch player name and vocation from players table (based on player id). $data = user_character_data($charid, 'name', 'vocation'); echo $data['name']; // Result: playername echo $data['vocation'] // Result: 1 (if its a sorcerer, etc...). ?>
The script in Tfs 0.3, works it also, not show the name of Killer.
Works on creatures (ex: dead by rotworm) but not show the name of killer, in the case pvp.
Any solution?
I use he OTX Server Version: (2.51 - SE - 1549)
what code i need to use?