Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "Array index out-of-bounds (index -1, limit 64)" in file store-loadouts.sp #12

Open
Triggerhacks opened this issue Feb 9, 2021 · 3 comments

Comments

@Triggerhacks
Copy link

The store-loadouts.sp seems to have an error occur upon "Event_PlayerSpawn" on line 129.

This should easily be fixed by checking for "IsValidClient" instead of "IsFakeClient"

I fixed this in the attached script :)
(The attached script is in .txt instead of .sp as GitHub does not support .sp)
store-loadouts.txt

@KrotiusPz
Copy link

Hi, i am currently trying to install this plugin but i can't seem to get it to work, i don't underrstand the whole process of database etc, my logs gives no errors but the plugin itself doesnt work ingame. i tried to follow the main tutorrial guide but i can't figure it out i've tried almost anything. any help would be appricated! The guide: https://github.com/SourceMod-Store/Sourcemod-Store/wiki/Store-Installation-Instructions

@Triggerhacks
Copy link
Author

Hi Krotius,

To use a plugin with a (MySQL) database you need to go to /addons/sourcemod/cfg/databases.cfg and add your database configuration as mentioned by the instructions. Make sure your connection info is correct for your database. If the issue persists please type sm plugins list in your server's console and copy-paste the output here in a pastebin.

@KrotiusPz
Copy link

Hi again, i tried to setup the database details i found in MySQL, but i just don't get it, how does it work why does it need a database, how is the database created? i put in the inforrrmation on cstrike/addons/sourcemod/configs/databases.cfg is that right or am i doing something totally wrong? in MySQL where do i find the exact data i need to put into the databases.cfg file?
here's the pastebin i see all the errors but if i check the logs all seems fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants