SA-MP Forums Archive
Dini question - 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: Dini question (/showthread.php?tid=638333)



Dini question - Kraeror - 30.07.2017

Hello guys, I'm using dini saving system.
How can i check if inside the file has a "password" line?


Re: Dini question - Shinja - 30.07.2017

PHP код:
if(dini_IsSet(YOURPATH"password")) 



Re: Dini question - Kraeror - 30.07.2017

error: undefined symbol "dini_IsSet"


Re: Dini question - Ebisu - 30.07.2017

Wrong.
PHP код:

new pw[200];
format(pwsizeof(pw), "%s"inputtext);// INPUT TEXT - The text you enter in the password dialog, You can use hash sys here too.
dini_Set(PATH"Password"pw); 
To get the password, use this.
PHP код:
 dini_Get(PATH"Password"); 



Re: Dini question - Shinja - 30.07.2017

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
error: undefined symbol "dini_IsSet"
dini_IsSet is in dini2
if you are using first dini use dini_Isset (no MAJ)