dini to y_ini
#1

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);
Reply
#2

Bump
Reply
#3

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.
Reply
#4

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)))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)