Dini to y_ini
#1

how i can convert this to y_ini

PHP код:
new password2 num_hash(password);
if(
dini_Int(string2,"Password") == password2
i try something like this..

PHP код:
INI_Int("Password", == password2); 
but i have one eror about not define name.
i make that without name and value function..

When i try with function i don't have idea it will work..
Reply
#2

This needs an explanation for Yini, I recommend you to read this tutorial: https://sampforum.blast.hk/showthread.php?tid=352703
Reply
#3

Use INI_Int("Password", password2);

without '==' i think you will not get any error
Reply
#4

Quote:
Originally Posted by kyriakos587
Посмотреть сообщение
Use INI_Int("Password", password2);

without '==' i think you will not get any error
Wrong.

Since the password is a string you must use INI_String.

https://sampforum.blast.hk/showthread.php?tid=570957

Anyway, I don't know what num_hash is. If it returns an integer, then yes, you're right.
Reply
#5

If I had to do this I certainly wouldn't use y_ini you really are better off biting the bullet and using either sqlite or mysql.
Reply
#6

@irinel Lel i just say maybe because i dont know how to use y_ini
Reply
#7

Wait Wait!!

Check this before you start converting your script from dini to y_ini!!!

https://sampforum.blast.hk/showthread.php?tid=574754
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)