[HELP] About reading from another folder.
#1

Hello everyone,

How do I read through the Y-Ini, that is to read the e-mail address from another file, I have made but there is something wrong.

I apologize for the English language.

This is the first part which checks to see if there account in the folder ..

Код:
if(dialogid == DIALOG_SNICK)
	    {
   		if(response)
		{
  			new luzer[24];
    	    if(sscanf(inputtext,"s",luzer))
		    {
			ShowPlayerDialog(playerid,DIALOG_SNICK, DIALOG_STYLE_INPUT, "{00c0ff}LA |{FFFFFF} Vracanje akaunta", "{FF0000}POGREЉNO UNESENO!!!\n{FFFFFF}Unesite vaљ nick na starom GameModu:", "Dalje", "Odustani");
		    return 1;
		}
		format(string, sizeof(string), "Stari/%s.ini", luzer);
		if(!fexist(string)) return SendClientMessage(playerid,-1, "{FFFF00}LA |{ffffff} Racun sa tim imenom ne postoji!");


		new file[128];
    	format(file, sizeof(file),"Stari/%s.ini", luzer);
		if(dini_Exists(file))
		{

        strmid(PlayerInfo2[playerid][pMejl], dini_Get(file,"Email"), 0, strlen(dini_Get(file,"Email")), 64);
	 	PlayerInfo2[playerid][pPare] = dini_Int(file,"Pare");
	 	PlayerInfo2[playerid][pNivo] = dini_Int(file,"Nivo");


		}

		//---------------------
		ShowPlayerDialog(playerid,DIALOG_SLOZINKA, DIALOG_STYLE_INPUT, "{00c0ff}LA |{FFFFFF} Vracanje akaunta", "{FFFFFF}Unesite vaљu {FF0000}E-Mail adresu{FFFFFF} sa starog GameModa:", "Dalje", "Odustani");

		}
	}
And this is the second part, verifying the existence accounts the office. But now when I check my email keeps saying that email is not correct, and it is.

Код:
	if(dialogid == DIALOG_SLOZINKA)
		{
			if(!response) return 1;
			if(response)
			{
				 //   if(strlen(inputtext) > 15) return ShowPlayerDialog(playerid,DIALOG_SLOZINKA, DIALOG_STYLE_INPUT, "{00c0ff}LA |{FFFFFF} Vracanje akaunta", "{FF0000}NEPRAVILNO UNESENO!!!\n{FFFFFF}Unesite vaљu lozinku sa starog GameModa:", "Dalje", "Odustani");

                if(strlen(inputtext))
				{

					if(strlen(inputtext) == PlayerInfo2[playerid][pMejl])
			    	{
					if(PlayerInfo2[playerid][pNivo] > 5)
					{
					SendClientMessage(playerid,-1,"{FF0000}LA |{FFFFFF} Vaљ nivo na starom GameModu je bio veći od 5, te vam je postavljen maximalni level.(Level 5).");
					PlayerInfo[playerid][pLevel] = 5;
					SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
					}
					else if(PlayerInfo2[playerid][pNivo] < 5)
					{
					new novi = PlayerInfo2[playerid][pNivo];
					SCMF(playerid,-1,"{FF0000}LA |{FFFFFF} Vaљ nivo na starom GameModu je bio manji od 5, te vam je postavljen level %d.",novi);
					PlayerInfo[playerid][pLevel] = novi;
					SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
					}
					if(PlayerInfo2[playerid][pPare] > 300000)
					{
					SendClientMessage(playerid,-1,"{FF0000}LA |{FFFFFF} Vaљ novac na starom GameModu je bio veći od 300000$, te vam je postavljen maximalan broj novca(300000$).");
					DajNovac(playerid, 300000);
					}
					else if(PlayerInfo2[playerid][pPare] < 300000)
					{
					new nove = PlayerInfo2[playerid][pPare];
					SCMF(playerid,-1,"{FF0000}LA |{FFFFFF} Vaљ novac na starom GameModu je bio manji od 300000, te ste dobili %d$.",nove);
					DajNovac(playerid, nove);
					}
					 } return ShowPlayerDialog(playerid,DIALOG_SLOZINKA, DIALOG_STYLE_INPUT, "{00c0ff}LA |{FFFFFF} Vracanje akaunta", "{FF0000}NEPRAVILAN E-MAIL!!!\n{FFFFFF}Unesite E-MAIL sa starog GameModa:", "Dalje", "Odustani");
					}
					}
					}
Or if anyone knows how to do a reading to tell me.
Reply
#2

BUMP!!!
Reply
#3

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)