PDA

View Full Version : event scripts sqlite


Jasonbourne
01-08-2012, 23:09
is it possible to load an es sqlite db

in my case cstrike/addons/eventscripts/sourcerpg/players.sqlite

and write/read data from it

using a sourcemod plugin

because from the documentation looks like the db path is set

for sm at cstrike/addons/sourcemod/data

can anyone help me out here?

necavi
01-08-2012, 23:12
Definitely possible using a symlink, although be careful with sqlite databases being access by multiple plugins...it is very dangerous and such.

Try using MySQL, if you can.

Jasonbourne
01-08-2012, 23:22
I just want to check if the have x credits

then execute some code and remove x credits

essentiallythey are buying a respawn

just im not too confident with teh sql especially when its not in the default location

so any examples//links//info and would be greatly appreciated

Im still quite new to sm coding