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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 15 Nov 2015 07:48 PM |
| Do you have a way to upload files to your server? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 15 Nov 2015 08:56 PM |
| Not game, studio. Just upload a php file to your server |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 15 Nov 2015 09:20 PM |
Not on roblox lol. Ur webserver. Upload the php files to that |
|
|
| Report Abuse |
|
|
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 |
|
|