Re: nVault Tutorial
Quote:
I did it but not worked PHP Code:
|
Re: nVault Tutorial
It looks like you are trying to remove a record by it's value, which, based on the variable name, will likely not be unique. You should store data using steam id as key and then pass that to nvault_remove.
|
Re: nVault Tutorial
Quote:
PHP Code:
|
Re: nVault Tutorial
Think about it logically.
1. Read this tutorial again 2. Read how nvault_remove() works, specifically what you pass to it. http://www.amxmodx.org/api/nvault/nvault_remove Code:
|
Re: nVault Tutorial
Quote:
PHP Code:
PHP Code:
|
Re: nVault Tutorial
This is probably the simplest nvault transaction, I'm not sure what you do not understand. This is as simple as I can get it.
PHP Code:
|
Re: nVault Tutorial
Quote:
|
Re: nVault Tutorial
What do you mean "it didnt get reset"? I think you need to learn more of the basic stuff before jumping in to this if you are having problems.
Based on this code I can tell you are not understanding the basic fundamentals. To make this work, you should be reading the steam id into szPlayer. You should NEVER store data by a players name...or anything other than steam id since this is guaranteed unique to a single player. PHP Code:
|
Re: nVault Tutorial
Quote:
2. I already using steam id on save/load data and I did similar codes as you did exampling but it's never worked PHP Code:
|
Re: nVault Tutorial
Your savedata and loaddata look good, though you can just do: iMoney[id] = nvault_get(iVault, szAuth )
|
All times are GMT -4. The time now is 05:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.