Assuming that it's a module, I'm gonna call it that just to make things easier.
I've been working on the database the past few days for the store for my community and I've come across an issue related to the Loadouts module. It's probably my fault(which I'm fairly sure it is), I need a method to fix this while keeping the database for my users. I wiped the database 'store_users_item_loadouts' and 'store_loadouts' or Truncated but after doing so, I realized that the list of users was in there as well for each ID and each loadout. I'm not too sure if this caused the problem(which is probably did) but I'd like to point out my theory.
When users click on 'Loadouts' in the menu for the store, the menu just closes and the server gets some errors in both 'store' and 'errors' logs.
Code:
L 03/18/2013 - 20:41:36: [SM] Plugin encountered error 15: Array index is out of bounds
L 03/18/2013 - 20:41:36: [SM] Native "Store_GetLoadoutGame" reported: Error encountered while processing a dynamic native
L 03/18/2013 - 20:41:36: [SM] Displaying call stack trace for plugin "store\store-loadout.smx":
L 03/18/2013 - 20:41:36: [SM] [0] Line 270, C:\Users\Alon\Documents\GitHub\store\scripting\store-loadout.sp::IsLoadoutAvailableFor()
L 03/18/2013 - 20:41:36: [SM] [1] Line 181, C:\Users\Alon\Documents\GitHub\store\scripting\store-loadout.sp::Event_PlayerSpawn()
L 03/18/2013 - 20:41:36: [SM] Plugin encountered error 15: Array index is out of bounds
L 03/18/2013 - 20:41:36: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 03/18/2013 - 20:41:36: [SM] [0] Line 1679, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetLoadoutGame()
Code:
2013-03-18 17:33:36 [store/store-loadout.smx] WARN | No loadout found.
2013-03-18 17:33:36 [store/store-loadout.smx] WARN | No loadout found.
2013-03-18 17:33:36 [store/store-loadout.smx] WARN | No loadout found.
I'd also like to ask the question as to the best method to clearing cache? I'm not sure how.
Cheers,
- Jack