1. LEO318x submitted a new resource:

    Stats, Top and Rewards - Show the stats, tops of the players and exchange the money for weapons, etc

    Read more about this resource...
     
  2. Code:
    SQL query:--
    -- Base de datos: `rust`
    --
    -- --------------------------------------------------------
    --
    -- Estructura de tabla para la tabla `logs`
    --
    CREATE TABLE IF NOT EXISTS  `logs` (`id` BIGINT( 200 ) NOT NULL ,
    `useridkill` BIGINT( 100 ) NOT NULL ,
    `namekill` VARCHAR( 200 ) NOT NULL ,
    `useriddeath` BIGINT( 100 ) NOT NULL ,
    `namedeath` VARCHAR( 200 ) NOT NULL ,
    `pointswin` BIGINT( 100 ) NOT NULL ,
    `pointslost` BIGINT( 100 ) NOT NULL ,
    `category` INT( 1 ) NOT NULL
    ) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =1;MySQL said: Documentation#1046 - No database selected 
     
  3. Upperking, What are you running the query on. phpadmin? heidisql? something else. Make sure you have a table created that you have selected when running the script.
     
  4. [Oxide] 11:35 AM [Error] MKToprewardsplayer: KeyNotFoundException while calling OnEntityDeath: The given key was not present in the dictionary.
     
    Last edited by a moderator: Feb 7, 2015
  5. i am getting error connect 345 - right before that it says error adding user please check settings. :)
     
  6. Code:
    [Oxide] 12:18 PM [Info] There was an error adding the user to the database, check your settings
    [Oxide] 12:18 PM [Info] ERROR-CONNECT_345|------->The remote server returned an error: (500) Internal Server Error.
    its all set right in the config/. who knows....
     
    Last edited by a moderator: Feb 7, 2015
  7. Error 500 - Internal server error, check your php.ini or apache config :)
    [DOUBLEPOST=1423332265][/DOUBLEPOST]
    You can enable the "apache errors" and see if it displays some information?
    [DOUBLEPOST=1423332431][/DOUBLEPOST]
    I'm fixing now :)
     
    Last edited by a moderator: Feb 7, 2015
  8. hello, I already have a website in aspnet (rustrio.hogsolution.com) wanted to use the plugin to store information in the bank and then I would generate the rank on the site.
    The best solution for this plugin would be a webservice
     
    Last edited by a moderator: Feb 7, 2015
  9. I got this in error_log
     

    Attached Files:

  10. LEO318x updated Stats, Top and Rewards with a new update entry:

    Fixing Missing Variables


    [DOUBLEPOST=1423334959][/DOUBLEPOST]
    Key and
    Please update the plugin, then, in your folder "stats" are include the folder inc?
     
  11. Cant seem to get past these errors
    Code:
    Warning: require_once(/inc/config.php): failed to open stream: No such file or directory in /public_html/webpage/index.php on line 2
    Fatal error: require_once(): Failed opening required '/inc/config.php' (include_path='.:/opt/php55/lib/php') in /public_html/webpage/index.php on line 2
    [DOUBLEPOST=1423335619][/DOUBLEPOST]Changed line 2 in "index.php"

    Code:
    from:
    require_once("/inc/config.php");
    to:
    require_once("./inc/config.php");
    now working
    [DOUBLEPOST=1423335917][/DOUBLEPOST]Also the same for config.php
    line 9

    Code:
    From:
    require_once ('/meekrodb.php');
    to:
    require_once ('./meekrodb.php');
     
    Last edited by a moderator: Feb 7, 2015
  12. already solved it but do not do that, just put the "."
    Bad: require_once("/home/****/public_html/webpage/inc/config.php");
    Good: require_once("./inc/config.php");
     
  13. Was just about to edit my post to put a "." instead of the full address. You beat me to it ;)
    Will edit my post anyways
     
  14. :D
    And you edit, the index, user, users, etc, right now I'm uploading the upgrade, to avoid this :p
     
  15. error in console
    Code:
    Oxide] 8:39 PM [Info] Unloaded plugin Top/Rewards Player (v0.0.2) by LEO318x
    [Oxide] 8:39 PM [Info] Loaded plugin Top/Rewards Player (v0.0.2) by LEO318x
    [Oxide] 8:40 PM [Error] MKToprewardsplayer: JavaScriptException while calling OnEntityDeath: No public methods with the specified arguments were found.
      at Jint.Native.Function.ScriptFunctionInstance.Call (JsValue thisArg, Jint.Native.JsValue[] arguments) [0x00000] in <filename unknown>:0
      at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.CallFunction (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  16. Getting

    Code:
    [Oxide] 5:51 PM [Info] There was an error adding the user to the database, check your settings
    [Oxide] 5:51 PM [Info] ERROR-CONNECT_345|-------><!doctype html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>MK Stats RUST</title>
        <link rel="stylesheet" href="css/bootstrap.css">
        <!-- <link rel="stylesheet" href="css/bootstrap-responsive.css"> -->
        <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="css/toggle-switch.css">
        <link rel="stylesheet" href="css/style.css">
        <!--[if lt IE 9]>
        <script src="dist/html5shiv.js"></script>
        <![endif]-->
    </head>
    <body>    <div class="container">
            <header>
                <img src="img/logo.png" alt="ML Bootstrap Template">
                <h1>MK RUST STATS</h1>
            </header>        <div class="row navRow">
                <div class="span12">
                    <div class="navbar">
                        <div class="navbar-inner">
                            <ul class="nav">
                                  <li><a href="#" class="MKreq" ref="Home" chr="home">Home</a></li>
                                  <li class="divider-vertical"></li>
                                  <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                      Top 10
                                      <b class="caret"></b>
                                    </a>
                                        <ul class="dropdown-menu">
                                          <li><a href="#" class="MKreq" ref="TopP" chr="top" tabindex="-1">By Points</a></li>
                                            <li><a href="#" class="MKreq" ref="TopK" chr="top" tabindex="-1">By Kills</a></li>
                                            <li><a href="#" class="MKreq" ref="TopD" chr="top" tabindex="-1">By Deaths (Noobs)</a></li>
                                        </ul>
                                </li>
                                <li class="divider-vertical"></li>
                                  <li><a href="#">Most Wanted</a></li>
                                  <li class="divider-vertical"></li>
                                  <li><a href="#" class="MKreq" ref="" chr="users">Users</a></li>
                                  <li class="divider-vertical"></li>
                            </ul>
                            <form class="navbar-search pull-right">
                              <input type="text" class="search-query" placeholder="Search">
                            </form>
                        </div> <!-- /.navbar-inner -->
                    </div> <!-- /.navbar -->
                </div> <!-- /span12 -->
            </div> <!-- /row -->        <div class="row navRow">
                <div class="span12">
                    <div class="hero-unit">
                    <div id="responseMKreq">
                          <h1>Latest Statistics!</h1>
    <div class="">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab1">General</a></li>
                    </ul>                <div class="tab-content active">
                        <div id="tab1" class="tab-pane active">
                            <table class="table">
                                <thead>
                                    <tr><th>Description</th></tr>
                                </thead>
                                <tbody>
                                                               
                                </tbody>
                            </table>
                        </div>
                    </div> <!-- /tab-content -->
                </div>
            </div>
                    </div>
                </div>
            </div> <!-- /row -->
        </div> <!-- /container -->    <!-- JavaScript -->
        <script src="js/jquery-1.10.1.min.js"></script>
        <script src="js/bootstrap.js"></script>
        <script type="text/javascript">
    $(document).ready(function() {
        $('.MKreq').click(function(){
            var request = $(this).attr( "ref" );
            var chr = $(this).attr("chr");
            $.ajax({           
                type: "POST",
                url: "./"+chr+".php?req="+request,
                //beforeSend: ajaxindicatorstart('loading data.. please wait..'),
                success: function(a) {
                        $('#responseMKreq').html(a);
                        $('html, body').animate({
            scrollTop: $("#cursor").offset().top
        }, 2000);
                    //ajaxindicatorstop();
                }
            });
        });
    });            $links=$('a');            $links.delegate('click', function(e){
                    e.preventDefault();
                });    </script>
    </body>
    </html>ElSure�oConSue�o has left (disconnect)
     
  17. Code:
    [Oxide] 3:01 PM [Error] MKToprewardsplayer: JavaScriptException while calling OnEntityDeath: Object has no method 'getDamageType'
      at Jint.Native.Function.ScriptFunctionInstance.Call (JsValue thisArg, Jint.Native.JsValue[] arguments) [0x00000] in