generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Mysql connection

Previous Thread :: Next Thread 
Dmitch94 is not online. Dmitch94
Joined: 06 Jul 2010
Total Posts: 11
15 Nov 2015 07:14 PM
Hi,

I am trying to create an external banlist via a database hosted on my web server. This server would be accessed by all my games as well as our website to display bans.

How would i be able to connect to the database from within the game to check if a player is on the ban list and to add/remove players from it?
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
15 Nov 2015 07:15 PM
You would have to connect using a php script from your sever. Howeve you can send that request from ingame using HttpService.
http://wiki.roblox.com/index.php?title=API:Class/HttpService/PostAsync
Report Abuse
Dmitch94 is not online. Dmitch94
Joined: 06 Jul 2010
Total Posts: 11
15 Nov 2015 07:33 PM
not clear on how one inserts php code into a script?
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
15 Nov 2015 07:48 PM
Do you have a way to upload files to your server?
Report Abuse
Dmitch94 is not online. Dmitch94
Joined: 06 Jul 2010
Total Posts: 11
15 Nov 2015 08:38 PM
my web server yes
my game yes studio mode
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
15 Nov 2015 08:56 PM
Not game, studio. Just upload a php file to your server
Report Abuse
Dmitch94 is not online. Dmitch94
Joined: 06 Jul 2010
Total Posts: 11
15 Nov 2015 09:17 PM
Not fully sure i understand what you mean, I am fairly new to game creation in roblox and am still learning a lot about it
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
15 Nov 2015 09:20 PM
Not on roblox lol. Ur webserver.
Upload the php files to that
Report Abuse
Dmitch94 is not online. Dmitch94
Joined: 06 Jul 2010
Total Posts: 11
15 Nov 2015 09:22 PM
ok but then how does that affect the game? Do i use the info on the page that the first comment added to connect to the php file and from there the game can connect to the database?

Basicly Game > Httpservice > PHP file > Database?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image