Raised This Month: $ Target: $400
 0% 

event scripts sqlite


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 01-08-2012 , 23:09   event scripts sqlite
Reply With Quote #1

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?
Jasonbourne is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 01-08-2012 , 23:12   Re: event scripts sqlite
Reply With Quote #2

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.
necavi is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 01-08-2012 , 23:22   Re: event scripts sqlite
Reply With Quote #3

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

Last edited by Jasonbourne; 01-08-2012 at 23:23.
Jasonbourne is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode