[SOLVED][nVault] Loading problems
PHP Code:
What is the problem? - Loading works but it loads the wrong thing. - E.g. You are Colonel rank but when it loads, it changes to Private rank. - Same goes for EXP. They get resetted to 0. Description - Private is the default rank when they login. nVault Editor view Key: test Value: 14 204800 Where key is the password for login, 14 is the rank number and 204800 is the EXP. Extra information PHP Code:
|
Re: [nVault] Loading problems
According to your notation, iUserSavedPassword[id] is an integer value.
So you have to use %i or %d when formatting. PHP Code:
And the returns aren't needed, but they shouldn't cause any problems. |
Re: [nVault] Loading problems
iUserSavedPassword is a string not a integer. Sorry for not adding that. And can you show an example of it. This is my first time doing nVault.
As you can see Code:
nVault Editor viewEDIT: I tried drekes method. It still loads incorrectly. EDIT2: Stupid me. It was the login problem. I setted the rank to 0 after it loads the data when it should be the opposite. OMG. I spent 2 hour fixing this... |
Re: [nVault] Loading problems
Quote:
|
Re: [nVault] Loading problems
Yeah. I found out that the function automatically sets the iRank to 0. My bad. I wasted 2 hour finding the problem. Thanks drekes for removing some of the LoadData code.
and exolent sorry to bother you but it's fixed now. really sorry :X. |
| All times are GMT -4. The time now is 23:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.