Quote:
|
Re: [INC] SQLVault
I don't think you can be running the SQLite module to use a local database, while also connected to a remote database.
|
Re: [INC] SQLVault
That's really bad.
Would switching from SQLite to a remote DB for saving player information solve this problem ? |
Re: [INC] SQLVault
It should. The way SQLx works is that you can set the driver type.
For SQLite, the driver is "sqlite" which forces connections and queries to local. For normal, the driver is "mysql" which allows local database (if local MySQL server is running) and remote database. |
Re: [INC] SQLVault
Ok, thank you.
|
Re: [INC] SQLVault
Hey, i just met the big problem, here is the code:
Code:
new eVaultData[ 10 ][ SQLVaultEntryEx ]; Code:
L 07/02/2012 - 17:30:06: [AMXX] Run time error 3: stack error |
Re: [INC] SQLVault
That is a very large variable. If you see the enum in the include file, the struct for vault entries contains large arrays.
To fix this, make the variable static so it isn't created and destroyed each time, thus always staying in the stack and not causing errors when out of memory. |
Re: [INC] SQLVault
so I should write static eVaultData[ 10 ][ SQLVaultEntryEx ]; at the start of the plug or sth like this?
|
Re: [INC] SQLVault
Wherever this line is:
Code:
new eVaultData[ 10 ][ SQLVaultEntryEx ]; Code:
static eVaultData[ 10 ][ SQLVaultEntryEx ]; |
Re: [INC] SQLVault
Thanks a lot. It works!
One more question. If I write "`key2` = 'level'" in sqlv_read_set_ex, sqlv_read_set_ex returns a value for key2 (level) in variable eVaultData[ i ][ SQLVEx_Data ]? Or I must use sqlv_get_num_ex( g_hVault, eVaultData[ i ][ SQLVEx_Key1 ], "level" )? |
All times are GMT -4. The time now is 20:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.