Raised This Month: $32 Target: $400
 8% 

[INC] SQLVault


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-01-2012 , 18:39   Re: [INC] SQLVault
Reply With Quote #71

Tested it and it was incrementing, saving, and loading just fine for me.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 05-02-2012 , 08:55   Re: [INC] SQLVault
Reply With Quote #72

Quote:
Originally Posted by Exolent[jNr] View Post
Tested it and it was incrementing, saving, and loading just fine for me.
my bad , was using an older script ... It works fine , Is there a way to format it properly , like when i open the sql file using wordpad , the data's are all over the place
EpicMonkey is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-02-2012 , 09:24   Re: [INC] SQLVault
Reply With Quote #73

That's how the SQLite file is stored, regardless of what plugin/include is using it.
SQLVault has nothing to do with writing to files.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 05-10-2012 , 03:10   Re: [INC] SQLVault
Reply With Quote #74

Is there a way to save a data using 2 keys,

For instance:

Save a data via his steam id and his ip address.

And is this the only way to format 2 strings into 1 string :
PHP Code:
sqlv_set_data_ex(SQLVault:hVaultszKey1[], szKey2[], szData[]) 
cant we use
PHP Code:
sqlv_set_data(SQLVault:hVaultszKey[], szData[]) 
EpicMonkey is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-10-2012 , 09:24   Re: [INC] SQLVault
Reply With Quote #75

Code:
sqlv_set_num_ex(gVault, steamID, "kills", 1);
or
Code:
new key[64]; formatex(key, charsmax(key), "%s-kills", steamID); sqlv_set_num(gVault, key, 1);

The difference is if you wanted to sort vault entries, the Extended version is more efficient.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 05-10-2012 , 10:42   Re: [INC] SQLVault
Reply With Quote #76

i see , and what about my first question , saving data using 2 keys , ex : steamID and Ip address
EpicMonkey is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-10-2012 , 10:46   Re: [INC] SQLVault
Reply With Quote #77

As a combination, or separate data?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 05-10-2012 , 12:42   Re: [INC] SQLVault
Reply With Quote #78

combo

for instance i have g_randomdata

PHP Code:
sqlv_set_num_ex(gVaultsteamIDIPadressg_randomdata); 
1 data 2 keys , so they cant cheat by using another steam id
EpicMonkey is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-10-2012 , 12:54   Re: [INC] SQLVault
Reply With Quote #79

You aren't making any sense.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 05-10-2012 , 14:03   Re: [INC] SQLVault
Reply With Quote #80

Quote:
Originally Posted by Exolent[jNr] View Post
You aren't making any sense.
hmm i thought i was making some sense ....

how should i put this

when you save data via steam id

when you want to load his data , it gets loaded via his steam id

What i am wondering , if we could save his data via steam id + ip address

so when i want to load his data , it gets loaded via steam id + ip address

Edit : Usually we use steam id as a key , i want to know if its possbile to use steam id + ipaddress as a key

Last edited by EpicMonkey; 05-10-2012 at 14:04.
EpicMonkey is offline
Reply


Thread Tools
Display Modes

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 16:04.


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