SA-MP Forums Archive
Need help with Y_INI - 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: Need help with Y_INI (/showthread.php?tid=346949)



Need help with Y_INI - zombieking - 30.05.2012

At first, Hello all! I am learning Y_INI... Here is my problem:

I want to compare the inputtext with Password from file:

pawn Код:
if(inputtext[playerid] == pStats[playerid][Password])
But I want it like this:

pawn Код:
if(inputtext[playerid] == //compare with string Password from file here)
Thanks in advance !


Re: Need help with Y_INI - zombieking - 30.05.2012

BUMP! (Sorry but I need help with this fast...)


Re: Need help with Y_INI - mati233 - 30.05.2012

Could you be more specific? I'm not sure if I understood what you want...


Re: Need help with Y_INI - zombieking - 30.05.2012

I want to compare inputtext with a value from a file


Re: Need help with Y_INI - IceCube! - 30.05.2012

if(strcmp(inputtext, pStats[playerid][Password]) == 0)


Re: Need help with Y_INI - zombieking - 30.05.2012

I want to compare the inputtext with a value FROM A FILE not with a player var!


Re: Need help with Y_INI - mati233 - 30.05.2012

PHP код:
INI_Read("your file""your password field"



Re: Need help with Y_INI - IceCube! - 30.05.2012

Quote:
Originally Posted by zombieking
Посмотреть сообщение
I want to compare the inputtext with a value FROM A FILE not with a player var!
YOu need to load the player TO LOAD the password. if the passwrod IS NOT LOADED you cannot compare it.

This forum requires that you wait 120 seconds between posts. Please try again in 45 seconds. - THis has wasted my life


Re: Need help with Y_INI - zombieking - 30.05.2012

Never mind... I'll change to SII...