My Ranking dont Work :(

Results 1 to 9 of 9
  1. #1
    Apprentice gsk8 is offline
    MemberRank
    Feb 2009 Join Date
    21Posts

    My Ranking dont Work :(

    Help Me !! My ranking Dont Work in Mssql or ODBC
    Screen Shot.

    MSSQL


    ODBC


  2. #2
    Valued Member Kelo is offline
    MemberRank
    Sep 2008 Join Date
    =] Private [=Location
    116Posts

    Re: My Ranking dont Work :(

    There is a Problem on Line 26. Post it here so we may see

  3. #3
    Apprentice gsk8 is offline
    MemberRank
    Feb 2009 Join Date
    21Posts

    Re: My Ranking dont Work :(

    PHP Code:
    <?php
    # GunZ Rankings Page - Shows the top list of characters on a gunz server
    # Copyright (C) 2008 Shadow-xx

    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.

    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.

    # You should have received a copy of the GNU General Public License
    # along with this program.  If not, see <http://www.gnu.org/licenses/>.    

    #---------------------------------------------------------------------------

    # config.php 

    #---------------------------------------------------------------------------

    # Database Settings
    $database_serv 'QUARTO\SQLEXPRESS'// Database Server (leave blank when using odbc)
    $database_name 'GunZDB'// Database Name
    $database_user 'sa'// Database Username
    $database_pass 'number12'// Database Password

    # Database Connection
    # 0 - mssql
    # 1 - odbc
    $connection_type '1';

    # Table Names
    $table_account   'Account'// Acount Table
    $table_character 'Character'// Character Table

    # Limit on rows
    # This will limit the amount of rults returned to the browser
    # The higher u set the limit the higher the server load will be
    $row_limit '100';

    # Order by
    # - XP 
    # - Level
    # - Name
    # - DeathCount
    # - KillCount
    $order_by 'XP';

    # Colored names
    # Note when you filter all everything but notmal and jjang users
    # It might be smarter to turn this of to decrease server load
    # 0 - OFF
    # 1 - ON
    $color_names '1';
    # Color names settings
    $color_255 '#ff9933'// Administrator
    $color_254 '#ff9933'// Developer/Gamemaster
    $color_253 '#000000'// Banned
    $color_252 '#ff9933'// Hidden GM
    $color_2   '#0044ff'// User With Jjang
    $color_0   '#999999'// Normal User

    # User Legend
    # Note only turn this on when the coler names are on
    # or else it wil increase the server load for nothig
    # 0 - OFF
    # 1 - ON
    $userlegend_status '1';
    # User legend aligment
    # 0 - Horizontal
    # 1 - Vertical
    $userlegend_align  '0';
    # User legend place
    # 0 - Top
    # 1 - Bottom
    $userlegend_place  '1';

    # Exlude Users
    # Seperate With |
    # - 255 Administrator
    # - 254 Developer/Gamemaster
    # - 253 Banned
    # - 252 Hidden GM
    # - 2   User With Jjang
    # - 0   Normal User
    $exclude_users '255|254|253|252';

    # Escape Characters
    # Leave This alone should be fine as it is
    $new "\r\n"// New Line
    $tab "\t"// Tab
    ?>
    Help Me ;D

  4. #4
    Account Upgraded | Title Enabled! EpikBaby is offline
    MemberRank
    Aug 2009 Join Date
    New YorkLocation
    486Posts

    Re: My Ranking dont Work :(

    You didn't do the ODBC on your computer.

  5. #5
    Apprentice gsk8 is offline
    MemberRank
    Feb 2009 Join Date
    21Posts

    Re: My Ranking dont Work :(


  6. #6
    Account Upgraded | Title Enabled! EpikBaby is offline
    MemberRank
    Aug 2009 Join Date
    New YorkLocation
    486Posts

    Re: My Ranking dont Work :(

    Erm... Edit Config.php... or Ranking.php.

    And you need both GunzDB on ODBC.

    UserDNS & SystemDNS

  7. #7
    Banned pzykowa is offline
    BannedRank
    Dec 2007 Join Date
    109Posts

    Re: My Ranking dont Work :(

    Can you post whole script
    Maybe I can fix it
    index,config,rank blabla

  8. #8
    Account Upgraded | Title Enabled! EpikBaby is offline
    MemberRank
    Aug 2009 Join Date
    New YorkLocation
    486Posts

    Re: My Ranking dont Work :(

    Quote Originally Posted by pzykowa View Post
    Can you post whole script
    Maybe I can fix it
    index,config,rank blabla
    No. Because if you want me to do everything then what is the point of you being a Gunz owner...

    You edit it yourself.

    People don't help this skid...

    -Closedplease

  9. #9
    Valued Member LegacyCode is offline
    MemberRank
    Aug 2009 Join Date
    HyruleLocation
    129Posts

    Re: My Ranking dont Work :(

    Try enabling short tags in the ini files..

    this ranking system works fine..



Advertisement