Kxnrl / Store

Store plugin for Source Engine Games.
https://github.com/Kxnrl/Store
90 stars 46 forks source link

having trouble fetching database! #156

Open matin-haji opened 3 years ago

matin-haji commented 3 years ago

hi,

so I made a retake server on dathost. I tried installing this store and I think I did it correctly. But every time I type !store in chat it says, "Please wait! fetching your inv" something like that. I imported it to the database in phpAdmin. I have tried everything and I cannot seem to find any help online. Please let me know what screenshots to provide to help you help me.

plus, when it says delete store_(GAMEMODE).smx. I do not know the specif abbreviations, like tt, bh, kz, etc. So I deleted all except one, and I renamed it to store.smx. I hope I did that step right.

BattleBusted commented 3 years ago

show me your databases.cfg

matin-haji commented 3 years ago

show me your databases.cfg

so I just realised that I did not import the database.cfg, but im using dathost for my server. I dont have the database.cfg file on my pc as its a third part provider. If I would try to download the file and important it into PhP it would be a copy of the file, not the one in the server. idk if these pics would help. c2 c3 Capture

BattleBusted commented 3 years ago

You have to add a connection named "csgo" to a database (name it as you want) in your database.cfg. Then go to phpmyadmin and create the database. Now go into the kxnrl repo /config/ folder I think there's a database.sql file. Open it and copy paste the code into the sql tab of your created database on phpmyadmin

matin-haji commented 3 years ago

You have to add a connection named "csgo" to a database (name it as you want) in your database.cfg. Then go to phpmyadmin and create the database. Now go into the kxnrl repo /config/ folder I think there's a database.sql file. Open it and copy paste the code into the sql tab of your created database on phpmyadmin

sorry, very new to this. How do I add the database in the cfg. like do I add lines of code? is that what you mean?

BattleBusted commented 3 years ago

You still lock ?

Kxnrl commented 3 years ago

check databases.cfg, and make sure you imported item/category into database