Login Help? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Login Help? (
/showthread.php?tid=271577)
Login Help?[Solved] -
Dr - 25.07.2011
Fixed thanks...
Re: Login Help? -
Cyanide - 25.07.2011
dini_Int returns a integer, you need to use dini_Get instead.
Re: Login Help? -
Dr - 25.07.2011
The error is gone but now it logs the person in whether they type in the correct password or not...
Re: Login Help? -
Cyanide - 25.07.2011
The password is nil. Make sure you set password (dini_Set) with characters.
Re: Login Help? -
Dr - 25.07.2011
The password saving code:
And in the .ini file it is saved correctly, example: I type theone1234, it saves it...
Re: Login Help? -
PrawkC - 25.07.2011
if(strcmp(inputtext, dini_Get(file, "Password"), true))
to
if(!strcmp(inputtext, dini_Get(file, "Password"), true))
strcmp returns 0 if the string matches.
Re: Login Help? -
Dr - 25.07.2011
Thanks PrawkC, did not know that. It is working now thanks again.