Hello i have a problem when I add new items to the inititem and when i add this new items in game its ok but after relog this items disappear whats wrong with this? i use clean database (using fusion repack)
Hello i have a problem when I add new items to the inititem and when i add this new items in game its ok but after relog this items disappear whats wrong with this? i use clean database (using fusion repack)
use another index number and try it with normal char
run that, it shuld fix the bugPHP Code:<?php $db_host = ""; $auth_db = ""; $data_db = "";
mssql_connect($db_host); mssql_select_db($data_db); $query_item = mssql_query("SELECT [IID] FROM [Item] ORDER BY [IID] DESC"); $query_item_data = mssql_fetch_array($query_item); $item_id = $query_item_data[0]; if($item_id < 0) $item_id =0; $query = mssql_query("SELECT * FROM [Item] WHERE [IID] < 0"); while($data = mssql_fetch_array($query)) { extract($data); $item_id++; mssql_query("UPDATE [Item] SET [IID] = $item_id WHERE [IID] = $IID"); echo "Changing ID: $IID to $item_id<br>"; } echo "Done"; ?>
Could also be that InitItem.txt from Serverfiles/Config and InitItem.txt in config.pk are not the same.
Try this.