AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   mysql (https://forums.alliedmods.net/showthread.php?t=346761)

itsme1 03-15-2024 19:49

mysql
 
cs1.6

Im using statsX.amxx that comes with v1.10 and stats are saving in nvault, how do i save them in mysql ?

Bugsy 03-16-2024 14:34

Re: mysql
 
Moved to Suggestions/Requests

itsme1 03-16-2024 17:53

Re: mysql
 
Thanks

Bugsy 03-16-2024 19:49

Re: mysql
 
To answer your question, look for topics that involve the sqlx module (just search for sqlx), and you will find examples on how to use it. Note that SQL is not as simple as nvault, as nvault does all of the work for you. With SQL, you need to create SQL statements for everything you want to do.

Here's a few:
https://forums.alliedmods.net/showthread.php?p=2817784
https://forums.alliedmods.net/showpo...62&postcount=2

itsme1 03-16-2024 20:06

Re: mysql
 
the answer id like is a step by step way iv doing this, im stupid ok and old, i just need a step by step instruction on how to change from nvault to mysql without losing data.

Bugsy 03-16-2024 20:38

Re: mysql
 
Quote:

Originally Posted by itsme1 (Post 2819614)
the answer id like is a step by step way iv doing this, im stupid ok and old, i just need a step by step instruction on how to change from nvault to mysql without losing data.

Ok, you will need to provide more info if you want someone to do it for you, ideally your entire plugin. We will need to know the specific fields that are needed in the db, and what type of queries/transactions are needed. It's not a simple one-line replacement like you may be thinking.

itsme1 03-16-2024 21:00

Re: mysql
 
thanks i will follow that step by step instructions,

bigdaddy424 03-17-2024 03:36

Re: mysql
 
last update was in 2018, not that much has changed regardless
https://forums.alliedmods.net/showthread.php?t=279483


All times are GMT -4. The time now is 04:20.

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