Posts: 20
Threads: 3
Joined: Jan 2015
Reputation:
0
I can't give the detail, what's happened on my gamemode. First, I register to the server. Then, it's all ready done. I logged in. Successfully, all worked. I try to reconnect, then I login. It's done, successfully. The second try, I login. After login, i alt-tab then I GMX my server from the VPS.
After GMX, I re-connecting again. Then I got "Incorrect Password" after that. But I'm sure, I'm not fill the wrong password because my password is just "123456". I dont know what's happened, and what's wrong on my server. I used DINI, because i'm newbie then I have to learn about saving system and others. The DINI is very simple and recommended for beginner scripter.
Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
You're doing good starting off from DINI.
Let's check on something first, head for your 'database' path (scriptfiles/users or whatever you have) and check for your .ini file, is the 'Password' field '123456' ?
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
INI is not considered as today's standard database. If you really are starting, start with SQL which is far better.
Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
Starting with SQL will only confuse him and drive him off the main path which is learning to program sa:mp.
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
Recommending people to use DINI while learning to code is the same as recommending them to use GOTO everywhere, like they did in BASIC languages 30 years ago.
If you want to learn coding, do it right the first time with the proper tools and code-base.
It's no use to learn an outdated system while there are better and easier alternatives.
On topic: my guess is the account-file isn't closed anywhere except inside OnPlayerDisconnect.
When you log off, the file would be closed and you can login properly.
But using gmx while being connected (and the account-file hasn't been closed yet), you're restarting the server without properly logging off players and their file may be kept open.
Trying to login again would fail because the OS knows the file is opened already and you cannot open it a second time.
Posts: 701
Threads: 7
Joined: Feb 2017
Reputation:
0
09.03.2017, 10:33
(
Последний раз редактировалось Toroi; 09.03.2017 в 15:21.
)
When did you guys first start to learn to program?
I started 2 months ago. I'm giving him a recommendation from newbie to newbie based on my experience on how to learn efficiently. You are giving him a recommendation on which system is better. There is a context collision going on in this thread.