Jump to content


Photo
- - - - -

Online Games List


  • Please log in to reply
48 replies to this topic

#41 connor4312

connor4312

    www.connorpeet.com

  • GMC Member
  • 896 posts
  • Version:None

Posted 07 November 2010 - 05:54 AM

list.php: This page retrieves the list of available games, in textual format, with information divided by a separator character. It's up to the developer to split the resulting strings. If you access the page from a browser you can see the list in an html table.
insert.php: Allows to insert, update or keep alive a game in the server. It gets the game name and the player name as parameters. The IP of the host is kept in the database therefore calling this page when you already have a game results in updating it.
delete.php: Deletes a game from the server
config.php: Conrains the data needed to connect to the database


It would be far more efficent to have ONE page, and pass variables with the get method, so say you wanted to insert, go to action.php?i=insert

ip (VARCHAR 255)
name (VARCHAR 255)
player (VARCHAR 255)
last_update (DATETIME)


Will you really have someone whose ip or name are 255 characters? IPv6, the longest version, only has 39 characters. That just increases the server load and memory usages. It would also be more efficient to assign ids to each game to use as a handle, more efficient and easier to manage that using varchars. Try this code to create your table:
create table games(ip varchar(39),name varchar(100), player  varchar(20), last_update(DATETIME), id int NOT NULL);

Edited by connor4312, 07 November 2010 - 05:55 AM.

  • 0

#42 shrekboy1

shrekboy1

    GMC Member

  • New Member
  • 116 posts

Posted 11 November 2010 - 03:24 AM

any chance of a mplay_ version of this? because it looks great, i got pretty excited, then i saw it was 39DLL.
  • 0

#43 Veerarch

Veerarch

    GMC Member

  • GMC Member
  • 35 posts

Posted 17 November 2010 - 12:00 AM

what does DLL39_format_text and DLL39_format_none do cause i cant open the gex
  • 0

#44 borut

borut

    Courage Wolf Productions

  • GMC Member
  • 1152 posts
  • Version:GM:Studio

Posted 20 November 2010 - 09:30 PM

Nevermind :) Got it solved!

Edited by mold03, 20 November 2010 - 11:50 PM.

  • 0

#45 Veerarch

Veerarch

    GMC Member

  • GMC Member
  • 35 posts

Posted 09 December 2010 - 08:34 AM

i dont know how to get the ip from ds_list still lol
HELP!
  • 0

#46 beeproductions

beeproductions

    Helping gmc users

  • GMC Member
  • 1139 posts
  • Version:GM:Studio

Posted 10 December 2010 - 01:38 PM

Nice Nice Nice
  • 0

#47 jtstanley9

jtstanley9

    GMC Member

  • GMC Member
  • 16 posts

Posted 29 July 2011 - 08:00 PM

Hmmmm....
I call the php file, and it returns multiple lines into the games_list, all which look like HTML code.
If you look at the HTML code, it was supposed to be an error display page, saying that "The server did not understand your request", with a header "Bad Request".
If I cant get this to work, I am currently working on a serverlist using FTP.
  • 0

#48 Hello-World

Hello-World

    GMC Member

  • New Member
  • 105 posts

Posted 20 September 2011 - 12:50 AM

I'm having guy de douche's problem. When I open the source code it says 39dll extension package not found. :(
  • 0

#49 Terrified Virus

Terrified Virus

    Moderators Plaything

  • GMC Member
  • 724 posts
  • Version:GM:Studio

Posted 16 February 2012 - 11:02 PM

looks really nice!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users