Block keeps getting called.
I have this code
PHP Code:
|
Re: Block keeps getting called.
Use nvault_lookup instead.
or you can do this, you don't have to save the name. PHP Code:
|
Re: Block keeps getting called.
Thanks for the help, will try it.
Could u explain to me why it wasn't working as how i tried to do it? My intention was to save the name according to the steam id. So everytime a player joins with the same steam id, but a different name, this check should still be passed. The basic idea is to give someone points just once per name. Once their name is changed, i want the command to be available again. I don't wanna use booleans for this. |
Re: Block keeps getting called.
Then change the key to save by name instead of steamid if you desire to give points per name.
And about the explanation you can just do debugging and see what'sthe outputs. |
Re: Block keeps getting called.
Quote:
Code:
|
Re: Block keeps getting called.
Quote:
Code:
nvault_get(vaultHandle, "myKey", myString, charsmax(myString));Quote:
|
Re: Block keeps getting called.
Quote:
|
Re: Block keeps getting called.
Quote:
From what i've heard of the tester, this version should work. PHP Code:
|
Re: Block keeps getting called.
If this command can be used more than once, you can use the timestamp advantage nvault offers using nvault_lookup. Whenever you claim your points update its timestamp with nvault_touch.
|
Re: Block keeps getting called.
Quote:
It's pretty simple: If name is not found in nvault, give XP. If name is found in nvault, don't give XP, cause he already got it earlier. |
| All times are GMT -4. The time now is 11:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.