SA-MP Forums Archive
dini to 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: dini to y_ini (/showthread.php?tid=568821)



dini to y_ini - bigboy81 - 25.03.2015

how i can convert these variables to y_ini
i making y_ini registration and learning some conditions..
And this is my first time about that..

Код:
if(dini_Exists(bancheck))
	{
	    ClearChatbox(playerid, 10);

		if(!strcmp(dini_Get(bancheck,"BanName"),name,true))
		{
		    SCM(playerid, COLOR_NICERED,"=======================================BANNED ======================================");
			SCM(playerid, COLOR_WHITE,"This ip adress is banned.");
		       COLOR_NICERED,"=======================================BAN INFO=====================================");
            format(msg2,sizeof(msg2),"Name of account is banned from this ip %s: %s",playersip, dini_Get(bancheck,"BanName"));
			SCM(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Banned by: %s",dini_Get(bancheck,"BannedBy"));
			SCM(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Date of ban: %s",dini_Get(bancheck,"BanDate"));
			SCM(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Reason of ban: %s",dini_Get(bancheck,"BanReason"));
			SCM(playerid, COLOR_WHITE,msg2);



Re: dini to y_ini - bigboy81 - 26.03.2015

Bump


Re: dini to y_ini - CalvinC - 26.03.2015

Use INI_Int etc. instead of dini_Get, and i don't know of any way to check with "dini_Exists" for y_ini, but you should just use fexist for that.
I would recommend reading some y_ini tutorials though.


Re: dini to y_ini - bigboy81 - 26.03.2015

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Use INI_Int etc. instead of dini_Get, and i don't know of any way to check with "dini_Exists" for y_ini, but you should just use fexist for that.
I would recommend reading some y_ini tutorials though.
I use for
Код:
if(dini_Exists(bancheck))
Код:
if(fexist(UserPath(playerid)))