SA-MP Forums Archive
Player Password didn't read - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player Password didn't read (/showthread.php?tid=630105)



Player Password didn't read - AvicennaRabama - 09.03.2017

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.


Re: Player Password didn't read - Toroi - 09.03.2017

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' ?


Re: Player Password didn't read - Gammix - 09.03.2017

INI is not considered as today's standard database. If you really are starting, start with SQL which is far better.


Re: Player Password didn't read - Toroi - 09.03.2017

Starting with SQL will only confuse him and drive him off the main path which is learning to program sa:mp.


Re: Player Password didn't read - Threshold - 09.03.2017

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Starting with SQL will only confuse him and drive him off the main path which is learning to program sa:mp.
Possibly, but you shouldn't go back to 1864 if you want help with your computer.


Re: Player Password didn't read - SyS - 09.03.2017

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Starting with SQL will only confuse him and drive him off the main path which is learning to program sa:mp.
SQL is so close to simple english and I dont think it will confuse any. It is designed for the use of both pros and newbs.


Re: Player Password didn't read - Toroi - 09.03.2017

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
SQL is so close to simple english and I dont think it will confuse any. It is designed for the use of both pros and newbs.
Still, they are two different programming languages. You're not learning one language from zero but two at the same time.

Focus in sa:mp first, when you learn the basics and feel like it, switch to SQL. As it is indeed way better than ini.


Re: Player Password didn't read - PowerPC603 - 09.03.2017

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.


Re: Player Password didn't read - SyS - 09.03.2017

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Still, they are two different programming languages. You're not learning one language from zero but two at the same time.

Focus in sa:mp first, when you learn the basics and feel like it, switch to SQL. As it is indeed way better than ini.
nope you are wrong sql is not a programming language it's a query language. And you dont have to learn about file system as a basic for sql


Re: Player Password didn't read - Toroi - 09.03.2017

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.