Jump to content

Help :D


marcus

Recommended Posts

I am making a game with some people and we are stuck on how we would do a restock system.

Our only idea was to run a cron every 1 minute and if the set number in the database equaled the one in the cron then it would run.

Also, with the items, I were thinking of an array rand.

Have an array with like 1 = item number 1, 5 = item#5 etc...

And have a random number between 10 and 20 and then have it insert into the database. If somebody bought the item then it would take it remove it from the database. Is this all anywheres possible?
Link to comment
https://forums.phpfreaks.com/topic/32160-help-d/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.