- Joined
- Sep 30, 2009
- Messages
- 320
- Reaction score
- 7
After registering in gunz how shall i configure database so newly members get the items i want to send them automatically.
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today! mssql_query("INSERT INTO AccountItem ([AID], [ItemID], [RentDate], [RentHourPeriod], [Cnt])VALUES('".$AID."', 'IDITEM', GETDATE(), '30', '1')"); //30 days the duration of the item, to edit it fix in the number 30 in the code.
Easy, follow this code and paste it below the order of the module that is directed towards sending the information to the database.
PHP:mssql_query("INSERT INTO AccountItem ([AID], [ItemID], [RentDate], [RentHourPeriod], [Cnt])VALUES('".$AID."', 'IDITEM', GETDATE(), '30', '1')"); //30 days the duration of the item, to edit it fix in the number 30 in the code.