Raised This Month: $51 Target: $400
 12% 

Bank System Nvault/SQL Support


Post New Thread Reply   
 
Thread Tools Display Modes
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 02-09-2022 , 22:32   Re: Bank System Nvault/SQL Support
Reply With Quote #41

Table will only be created on sqlite environment so put SQLite in title instead of SQL. They're completely different from one another.
bigdaddy424 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 02-10-2022 , 09:24   Re: Bank System Nvault/SQL Support
Reply With Quote #42

Quote:
Originally Posted by bigdaddy424 View Post
Table will only be created on sqlite environment so put SQLite in title instead of SQL. They're completely different from one another.
I did, "SQL_SetAffinity( "sqlite" );", but i don't know how to test it, so before iam upload a plugin with sql code i add debug logs for show if it is work or not so i'm ask for if there who know how to use it for tell me if the code has an issue.
.
API is the same but the difference is the title SQL_SetAffinity("sqlite") or SQL_SetAffinity("mysql")
https://forums.alliedmods.net/showthread.php?t=256024
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 02-10-2022 , 17:51   Re: Bank System Nvault/SQL Support
Reply With Quote #43

I understand that the language they use is almost the same but until you support MySQL you must change your title so people don't come up to this thread saying why it doesn't work. It would take you less time to update it than reply to this.
bigdaddy424 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 02-10-2022 , 20:39   Re: Bank System Nvault/SQL Support
Reply With Quote #44

Quote:
Originally Posted by bigdaddy424 View Post
I understand that the language they use is almost the same but until you support MySQL you must change your title so people don't come up to this thread saying why it doesn't work. It would take you less time to update it than reply to this.
  • Added an option to to select MySql or Sqlite.
  • Added an option to name nvault.
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 02-10-2022 at 20:46.
Supremache is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 04-10-2022 , 02:36   Re: Bank System Nvault/SQL Support
Reply With Quote #45

Quote:
PHP Code:
L 04/10/2022 03:29:11: [AMXXPlugin saysYou have an error in your SQL syntaxcheck the manual that corresponds to your MariaDB server version for the right syntax to use near '`SteamID` VARCHAR(64) UNIQUE, `Cash` INT(16) NOT NULL)' at line 1 
Please If you could help me, your plugin calls all my attention
sigerman is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-11-2022 , 07:40   Re: Bank System Nvault/SQL Support
Reply With Quote #46

Quote:
Originally Posted by sigerman View Post
Please If you could help me, your plugin calls all my attention
I will fix it in the next version but for now replace this:

PHP Code:
formatexszQuerycharsmaxszQuery ), "CREATE TABLE IF NOT EXISTS `%s` (ID INTEGER PRIMARY KEY AUTOINCREMENT,\
            `SteamID` VARCHAR(%i) UNIQUE, `Cash` INT(%i) NOT NULL);"
g_iSettingsSQL_TABLE ], MAX_AUTHID_LENGTHMAX_CASH_LENGTH ); 

PHP Code:
formatexszQuerycharsmaxszQuery ), "CREATE TABLE IF NOT EXISTS `%s` (`SteamID` VARCHAR(%i) NOT NULL,\
            `Cash` INT(%i) NOT NULL, PRIMARY KEY(SteamID));"
g_iSettingsSQL_TABLE ], MAX_AUTHID_LENGTHMAX_CASH_LENGTH ); 
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 04-11-2022 at 07:40.
Supremache is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 04-11-2022 , 17:46   Re: Bank System Nvault/SQL Support
Reply With Quote #47

It works, thanks

I was testing the plugin and I've found out that donate and reset options in the menu does not give a respone in case you have access to It

It would be nice also, to save by ip and name in the mysql option

It is a very well done plugin, I will use It on my servers, I apreciate your work!

Quote:
Originally Posted by Supremache View Post
I will fix it in the next version but for now replace this:

PHP Code:
formatexszQuerycharsmaxszQuery ), "CREATE TABLE IF NOT EXISTS `%s` (ID INTEGER PRIMARY KEY AUTOINCREMENT,\
            `SteamID` VARCHAR(%i) UNIQUE, `Cash` INT(%i) NOT NULL);"
g_iSettingsSQL_TABLE ], MAX_AUTHID_LENGTHMAX_CASH_LENGTH ); 

PHP Code:
formatexszQuerycharsmaxszQuery ), "CREATE TABLE IF NOT EXISTS `%s` (`SteamID` VARCHAR(%i) NOT NULL,\
            `Cash` INT(%i) NOT NULL, PRIMARY KEY(SteamID));"
g_iSettingsSQL_TABLE ], MAX_AUTHID_LENGTHMAX_CASH_LENGTH ); 
sigerman is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-12-2022 , 10:37   Re: Bank System Nvault/SQL Support
Reply With Quote #48

Quote:
Originally Posted by sigerman View Post
I was testing the plugin and I've found out that donate and reset options in the menu does not give a respone in case you have access to It
Check the config file.

Quote:
Originally Posted by sigerman View Post
It would be nice also, to save by ip and name in the mysql option
I will
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-15-2022 , 14:55   Re: Bank System Nvault/SQL Support
Reply With Quote #49

Quote:
Originally Posted by sigerman View Post
I was testing the plugin and I've found out that donate and reset options in the menu does not give a respone in case you have access to It
If you are testing it alone, it won't appear your name because there is a code that disappear it from the menu 'if( ( iPlayer = szPlayers[ i ] ) != id )'


Quote:
Originally Posted by sigerman View Post
It would be nice also, to save by ip and name in the mysql option
  • Added option to save SQL date using IP, name
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 04-18-2022 , 03:07   Re: Bank System Nvault/SQL Support
Reply With Quote #50

I was testing alone, ups! It works fine

Your support is so fast and caring, I will recommend your plugin. Thanks.
________

Quote:
Edit:
I've found this while the plugin is configured to save by name
L 04/18/2022 - 15:12:45: [Bank2.0-10-5461.amxx] [SQL Error] Query failed (1054): Unknown column 'Player' in 'field list'
Quote:
Originally Posted by Supremache View Post
If you are testing it alone, it won't appear your name because there is a code that disappear it from the menu 'if( ( iPlayer = szPlayers[ i ] ) != id )'




  • Added option to save SQL date using IP, name

Last edited by sigerman; 04-18-2022 at 14:21. Reason: Found something by saving mysql by name, and not to create a new post
sigerman 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 04:49.


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