Raised This Month: $32 Target: $400
 8% 

Hooking website purchase with server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Crazy991
Senior Member
Join Date: Apr 2014
Location: under my bed
Old 07-22-2015 , 16:00   Hooking website purchase with server
Reply With Quote #1

we have a website that you can buy stuff from it, and when somebody buys something i have to give it to him to server. how do i make it for example when he buys from the website he automatically gets the thing he bought in the server. we're using Credits in the website, you can buy jailbreak credits from the site
Crazy991 is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 07-22-2015 , 16:38   Re: Hooking website purchase with server
Reply With Quote #2

Use a MySQL database that you insert into with PHP and then read it with sourcepawn
__________________
ecca is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-22-2015 , 17:39   Re: Hooking website purchase with server
Reply With Quote #3

Quote:
Originally Posted by ecca View Post
Use a MySQL database that you insert into with PHP and then read it with sourcepawn
Yes, do this.

And since this involves real money, be super careful with how programs interact with your database is used. Make backups of the database as needed, make sure the values are properly stored. You don't want someone to buy credits and then see he has 0 because the PHP end screwed up somewhere or whatnot.

Also, uses threaded SQL queries when interacting with your database, so that the game server will not freeze while the query is in process.

Last edited by Potato Uno; 07-22-2015 at 17:39.
Potato Uno is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode