Posts: 109
Threads: 18
Joined: Dec 2011
Reputation:
0
Well, I didn't read your code and I don't know about djson.
But basically what's happening is it's not finding out if you've done the test or not.
You know how at the top of your script it says phealth?
Well what's it doing there is saving your player's health.
I don't know why it's saving it, perhaps to set it to that upon your next login.
But, anyway, there should be something like that but it'll be newplayer or test or something...
And when you pass the test, it should save that newplayer or test or whatever the name is to 1.
Then when you login, it'll read your file and if newplayer/test/whatever =1 it won't show the test.
If it reads your file and newplayer/test/whatever = 0 it will show the test.
Just read through your script, and check the scriptfiles.
You'll find it and figure out how to fix it in no time.
Posts: 462
Threads: 11
Joined: Jan 2012
Reputation:
0
Not to be an asshole or anything, but you people need to move on to a new saving system. DjSon is way out dated, go to y_ini or MySql.
Posts: 320
Threads: 16
Joined: Feb 2012
If I were you I would switched over to MySQL for more advantages and features but if you aren't capable with MySQL Just yet then switch over to y_ini bro that will be the best thing to do.
Posts: 1,905
Threads: 63
Joined: Oct 2011
Reputation:
0
DJson works like the database system in JavaScript, not technically outdated. MySQL is a hassle for new scripters. All the plugins, and things that could go wrong. Id rather choose the native SQLite if you actually want to do SQL without all the features that you probably won't need. Besides, this isnt a "tell people what to use thread".
Look up tutorials on DJson or find a slave.