[Help] Storing name.
Hello there,
Im storing name in nVault. So What I'm doing is storing name with the key of name. But when there are more than one players in the server and they type /reg to register at that time the name overlaps. For eg. First player. /reg He set his name: abc For eg. Second player. /reg He set his name: xyz so when second players wants to know his password he types /showname it shows xyz for both the users. Please help me out. PHP Code:
|
Re: [Help] Storing name.
You are using the same name variable for all players so it's written over every time a player connects . You should register names by steamid as well. There's more that needs some love, I can fix this up later for you.
|
Re: [Help] Storing name.
But in your tutorial you said to use key. We can find records using key.
So, I'm using Name-nvault as a key. Isn't it true ? "You are using the same name variable for all players so it's written over every time a player connects ." I didn't understand. Please elaborate. Thank you. :) |
Re: [Help] Storing name.
You should never be using a name for an NVault key. Always use SteamID.
|
Re: [Help] Storing name.
Quote:
Thanks. |
Re: [Help] Storing name.
Name is not unique to a person, steamid is. Any and every player can use the same name and the plugin will not know who the actual player who registered the name is.
|
Re: [Help] Storing name.
Quote:
It's a XP plugin. It will store XP, Level and Password. And the key will the name. If any user connects and if the password is empty then he/she has to log in in order to access the Shop. If he/she is already registered then he/she has to enter password. and then it will be compared with his password. If the entered password is true then he/she can use shop. Now problem is that I'm not able to store the password. Here is my LoadXp Cod. PHP Code:
PHP Code:
|
Re: [Help] Storing name.
In that case, if you use SteamID, it will make your plugin much simpler and will be less likely to have issues because you no longer need to do anything with passwords.
|
Re: [Help] Storing name.
Quote:
|
Re: [Help] Storing name.
I don't understand why you do not use steamID and automate this password stuff. Is your server non-steam or something? The only purpose I can see for this is if multiple users (brother\sister\friends) all use the same steam account, this would separate each individual users XP. I'm willing to help, but I need more of an understanding of exactly what you are trying to accomplish. Give an explanation in words not code.
|
| All times are GMT -4. The time now is 15:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.