Player status Undefined

Page 1 of 2 12 LastLast
Results 1 to 25 of 27
  1. #1
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Player status Undefined

    how do i fix this error?

    Last edited by landon38; 20-08-10 at 10:40 PM.


  2. #2
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined

    Bump......

  3. #3
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined

    bump for the last time.....

  4. #4
    Proficient Member Zewa is offline
    MemberRank
    Nov 2009 Join Date
    EstoniaLocation
    183Posts

    Re: Player status Undefined

    did you edit some thing?
    did you connect db?
    every thing else working?

  5. #5
    Member Dylan1 is offline
    MemberRank
    Aug 2009 Join Date
    lolz. SomewhereLocation
    65Posts

    Re: Player status Undefined

    Yeh. If one does not work. All the other codes must be configured wrong. Make sure it is set up to your standards. (GunzDB name, PC Name(Host), and Password, and IP).

  6. #6
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined

    Quote Originally Posted by Zewa View Post
    did you edit some thing?
    did you connect db?
    every thing else working?
    1. i follow the step of "How to fix my web error guide" By Nolife_x.
    2. yes.
    3. no there are too many error in B-2-O website.
    Code:
    Warning: mssql_query(): message: Invalid column name 'Slot'. (severity 16) in C:\Program Files\Abyss Web Server\htdocs\gunzweb\modules\mod_itemshop.php on line 29
    
    Warning: mssql_query(): Query failed in C:\Program Files\Abyss Web Server\htdocs\gunzweb\modules\mod_itemshop.php on line 29
    
    Fatal error: Call to undefined function: mssql_error() in C:\Program Files\Abyss Web Server\htdocs\gunzweb\modules\mod_itemshop.php on line 29
    Then after i register on the register page it doesn't work
    I think i will change it in to a ODBC type
    Last edited by landon38; 22-08-10 at 04:57 PM. Reason: adding error info

  7. #7
    Member Dylan1 is offline
    MemberRank
    Aug 2009 Join Date
    lolz. SomewhereLocation
    65Posts

    Re: Player status Undefined

    Change it to tha one on tha bottom. All tha way.

  8. #8
    Proficient Member Zewa is offline
    MemberRank
    Nov 2009 Join Date
    EstoniaLocation
    183Posts

    Re: Player status Undefined

    post line 29 from "mod_itemshop.php"
    let me see it

    for Player status I could help better if I would see the code
    Last edited by Zewa; 22-08-10 at 05:24 PM.

  9. #9
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Player status Undefined

    Quote Originally Posted by Zewa View Post
    post line 29 from "mod_itemshop.php"
    let me see it

    for Player status I could help better if I would see the code
    don't need to see it. hes missing the column "Slot" in probably CashShop.dbo

  10. #10
    Proficient Member Zewa is offline
    MemberRank
    Nov 2009 Join Date
    EstoniaLocation
    183Posts

    Re: Player status Undefined

    Quote Originally Posted by wesman2232 View Post
    don't need to see it. hes missing the column "Slot" in probably CashShop.dbo
    yea I was thinking same xD
    I think X-Weaver DB has it so
    use X-Weaver DB
    Last edited by Zewa; 23-08-10 at 08:28 AM.

  11. #11
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined

    ok i already fix the CashShop.
    But the Player Count is dead.
    Still Undefined.
    Any one help please!
    And How do i change the type of the register page into a ODBC

  12. #12
    Proficient Member Zewa is offline
    MemberRank
    Nov 2009 Join Date
    EstoniaLocation
    183Posts

    Re: Player status Undefined

    hmm take screenshot of dbo.ServerStatus

  13. #13
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined


    Code:
    USE [GunzDB]
    GO
    /****** Object:  Table [dbo].[ServerStatus]    Script Date: 09/23/2010 19:18:15 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[ServerStatus](
    	[ServerID] [int] NOT NULL,
    	[CurrPlayer] [smallint] NULL,
    	[MaxPlayer] [smallint] NULL,
    	[Time] [datetime] NULL,
    	[IP] [varchar](32) NULL,
    	[Port] [int] NULL,
    	[ServerName] [varchar](64) NULL,
    	[Opened] [tinyint] NULL,
    	[Type] [int] NULL,
     CONSTRAINT [ServerStatus_PK] PRIMARY KEY CLUSTERED 
    (
    	[ServerID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    
    GO
    SET ANSI_PADDING OFF
    Last edited by landon38; 23-08-10 at 01:05 PM. Reason: adding info for dbo.ServerStatus.

  14. #14
    Proficient Member Zewa is offline
    MemberRank
    Nov 2009 Join Date
    EstoniaLocation
    183Posts

    Re: Player status Undefined

    hmm in Server.ini IP is same like in dbo.ServerStatus?

  15. #15
    Account Upgraded | Title Enabled! fuxpro321 is offline
    MemberRank
    Jun 2010 Join Date
    266Posts

    Re: Player status Undefined

    hes missing the column "Slot" in probably CashShop.dbo

    HAVE You checked that first?

  16. #16
    Proficient Member Zewa is offline
    MemberRank
    Nov 2009 Join Date
    EstoniaLocation
    183Posts

    Re: Player status Undefined

    Quote Originally Posted by fuxpro321 View Post
    hes missing the column "Slot" in probably CashShop.dbo

    HAVE You checked that first?
    he all ready fixed it.

  17. #17
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined

    yes i already fix it but how about the player count it still Undefined.

  18. #18
    Account Upgraded | Title Enabled! landoncasis is offline
    MemberRank
    Mar 2009 Join Date
    PhilippinesLocation
    271Posts

    Re: Player status Undefined

    i recommend you to use appserv!

  19. #19
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined

    ok will try this appserv later.
    BTW my webserver is Abyss web server.

  20. #20
    Enthusiast puneethjain is offline
    MemberRank
    Aug 2010 Join Date
    28Posts

    Re: Player status Undefined

    same problem :(...need help guyz

  21. #21
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Player status Undefined

    make sure you have this in mod_index.php :
    PHP Code:
    <?
    $res 
    mssql_query("SELECT * FROM ServerStatus WHERE Opened = '1'");
    $servercount 0;
    while(
    $srv mssql_fetch_assoc($res)){
        
    $servercount $servercount $srv['CurrPlayer'];
    }
    ?>

  22. #22
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined

    Thanks wesman2232 i will try this.

  23. #23
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Player status Undefined

    The function for this problem is at the very top of mod_index.php, its the one I posted and the little bit of it below it.
    In all it should be :
    PHP Code:
    <?
    $res 
    mssql_query("SELECT * FROM ServerStatus WHERE Opened = '1'");
    $servercount 0;
    while(
    $srv mssql_fetch_assoc($res)){
        
    $servercount $servercount $srv['CurrPlayer'];
    }
    ?><body onload="FP_preloadImgs(/*url*/'images/ele/playbutton_hover.jpg')" bgcolor="#323232">

                <table border="0" style="border-collapse: collapse" width="100%" height="100%" id="table2">
                                    <tr>
                                        <td align="center" background="http://forum.ragezone.com/images/mn_info.jpg" height="76" style="background-image: url(''); background-repeat: no-repeat; background-position: center top">


    <div align="center">
                                        <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" name="obj2" width="417" height="76" border="0" id="obj2">
                                            <param name="movie" value="http://forum.ragezone.com/images/srv_data.swf">
                                            <param name="quality" value="High">
                                            <param name="wmode" value="transparent"><param name="BGCOLOR" value="#E2E2E2" />
                                            <embed src="http://forum.ragezone.com/images/srv_data.swf" width="417" height="76" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj2" quality="High" wmode="transparent" bgcolor="#E2E2E2"></object>
                                        </div></td>
                                    </tr>
    I still don't see why they use pics from RZ.
    Last edited by wesman2232; 29-08-10 at 03:12 AM.

  24. #24
    Member landon38 is offline
    MemberRank
    Jun 2010 Join Date
    PhilippinesLocation
    68Posts

    Re: Player status Undefined

    thank again wesman2232 more power to help and release.
    god bless you!

  25. #25
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Player status Undefined

    Quote Originally Posted by landon38 View Post
    thank again wesman2232 more power to help and release.
    god bless you!
    :P may I asked if I fixed your problem? If not I will keep helping ;)



Page 1 of 2 12 LastLast

Advertisement