withdraw money, to sa-mp game
#6

Quote:
Originally Posted by MerryDeer
Посмотреть сообщение
But there example send from sa-mp server to PHP, how to from PHP to sa-mp server?
In the example drawing, you'd be going front-end (Browser), to backend (PHP), to database...

You'd do nothing to the server as they shouldn't be on when you use this. If they are on when you use this then you need the SAMP server to check for a flag variable on the database to update the money on the players stats.


Which in this scenario that's been painted, you could use socket to do the flag variable to trigger the update, removing the need for a timer checking the database for the update.


With this "feature" though of being able to withdraw things on PHP, it's highly likely that if you withdrew from the webpage, and spent cash ingame, at the same moment, that you'd get free cash, unless it threw the account into "overdraft".
Reply


Messages In This Thread
withdraw money, to sa-mp game - by MerryDeer - 21.02.2017, 05:41
Re: withdraw money, to sa-mp game - by BroZeus - 21.02.2017, 06:59
Re: withdraw money, to sa-mp game - by MerryDeer - 21.02.2017, 09:48
Re: withdraw money, to sa-mp game - by BroZeus - 21.02.2017, 11:39
Re: withdraw money, to sa-mp game - by MerryDeer - 21.02.2017, 12:19
Re: withdraw money, to sa-mp game - by Sew_Sumi - 21.02.2017, 13:49
Re: withdraw money, to sa-mp game - by MerryDeer - 21.02.2017, 14:57
Re: withdraw money, to sa-mp game - by BroZeus - 21.02.2017, 15:00
Re: withdraw money, to sa-mp game - by MerryDeer - 21.02.2017, 15:03
Re: withdraw money, to sa-mp game - by MerryDeer - 23.02.2017, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)