nVault
Is there a way to detect if someone already exists in an nVault and if they do to write over their old data...
Here is my example. I have a Top 10 on my server, people beat the map, bhop or kz in a certain time lets say TOP 10 Climbers # || name || time || checks saved || go checks used 1 || John || 3:16 || 5 || 20 2 || Sally || 3:18 || 9 || 5 3 || Paul || 4:00 || 0 || 0 Now lets say that Sally is jumping again...she beats her old time of 3:18 with a time of 3:05 and using no checks, is there a way to delete her old data from the nVault and update it with the new data so the top 10 reads TOP 10 Climbers # || name || time || checks saved || go checks used 1 || Sally || 3:05 || 0 || 0 2 || John || 3:16 || 5 || 20 3 || Paul || 4:00 || 0 || 0 |
Re: nVault
Srry also here is a look at code i am using for top 10
Code:
Code:
|
Re: nVault
nvault_lookup will do that I guess
|
Re: nVault
AFAIK nvault overwrites old data with the current value if the key is the same. Psets are also affected.
I could be wrong about this... |
Re: nVault
Could you possibly show me this in action, because i have tried a lot of different combinations here, specifically in this area of the code.
Code:
|
Re: nVault
May somebody create a tutorial about Nvault and sorting in Nvault?
|
Re: nVault
|
Re: nVault
Thanks for the link but there is nothing about how to sort a nvault-based list.
And I donīt know how to get the rank of a specific entry within the list. |
Re: nVault
nvault_lookup() returns true if data exists for the key. That is all you need to do to check if data exists.
PHP Code:
|
Re: nVault
Quote:
|
| All times are GMT -4. The time now is 21:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.