CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13

Thread: game queries.

  1. #1
    Join Date
    Feb 2009
    Posts
    201

    game queries.

    Hello.

    I need some queries for my game servers.
    Counter-Strike: Source, Team Fortress 2, Day of Defeat: Source, Left 4 Dead and GarrysMod.

    However I found some on google, but they DO NOT work!

    I was wondering if any of you had some? Or knows anywhere I can create my own? And what do I need to know to make my own?

    I need them in PHP.

    - realchamp.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: game queries.

    What do you mean by "game queries?"
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Feb 2009
    Posts
    201

    Re: game queries.

    I mean like getting the actual amount of players on the server.
    And then what map the server is running on. Plus more stuff. And the servers name.

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: game queries.

    First off, you would have to know the database type, connection, and structure. After that, it would be a simple script to write using the correct database methods.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Feb 2009
    Posts
    201

    Re: game queries.

    Quote Originally Posted by PeejAvery View Post
    First off, you would have to know the database type, connection, and structure. After that, it would be a simple script to write using the correct database methods.
    What sort of database do you mean?

    The games database itself?

  6. #6
    Join Date
    May 2002
    Posts
    10,943

    Re: game queries.

    Do you know of any other database?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  7. #7
    Join Date
    Feb 2009
    Posts
    201

    Re: game queries.

    MySQL?

  8. #8
    Join Date
    May 2002
    Posts
    10,943

    Re: game queries.

    That's what I'm saying. You will have to know the database type: MySQL, MSSQL, Oracle, etc. From there, you can then use the correct APIs from within PHP.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  9. #9
    Join Date
    Feb 2009
    Posts
    201

    Re: game queries.

    Ahh okay. I will jump right into it.

    Do you have any experience or any advice to give me?

  10. #10
    Join Date
    May 2002
    Posts
    10,943

    Re: game queries.

    Not with game servers. I never got into the gaming realm. Even when I was a teen, computers were always for work or more important things.

    But, with programming, um, yes. Here are the various PHP libraries you will need to access the various databases.

    http://us.php.net/manual/en/refs.database.vendors.php
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  11. #11
    Join Date
    Feb 2009
    Posts
    201

    Re: game queries.

    Okay. Thank you!

  12. #12
    Join Date
    Aug 2009
    Posts
    44

    Re: game queries.

    if you own these servers there are many programs out there that allow you to do this sort of stuff

  13. #13
    Join Date
    Feb 2009
    Posts
    201

    Re: game queries.

    Quote Originally Posted by socialite View Post
    if you own these servers there are many programs out there that allow you to do this sort of stuff
    I own them. The problem is that I'd like to control them through my web browser.

    There is like HLSW, but requires me to install the program ALL the time, pissing me off!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured