login problem
#1

Hello,

I just want to know what's my problem with this code, if I registered or not, it always displays the register system

here is my code:

Код:
format(string, sizeof(string), "Users/%s.ini", playername);//register
			if (dini_Exists(string))
			{
		    	RegLogIn[playerid] = 1;
	    		SetPlayerCameraPos(playerid, 1363.3137,-1276.4448,21.6530);
				SetPlayerCameraLookAt(playerid, 1285.9583,-1219.0508,104.1589);
	    		ShowDialogID(playerid, 1);
	    		TextDrawHideForPlayer(playerid, MainTD[0]);
	    		TextDrawHideForPlayer(playerid, MainTD[1]);
	    		TogglePlayerControllable(playerid, false);
	    		SetPlayerPos(playerid, -1753.8430,885.1340,295.8750);
			}
			if (dini_Exists(string))//Login
			{
	    		ShowDialogID(playerid, 2);
	    		RegLogIn[playerid] = 1;
	    		TextDrawHideForPlayer(playerid, MainTD[0]);
	    		TextDrawHideForPlayer(playerid, MainTD[1]);
			}
Note: If you knew the problem , please don't just post a code or something like, please add an explanation with it, many thanks!!

Edit:dialog ids are not similar or even mixed with each other
Reply


Messages In This Thread
login problem - by Youice - 27.07.2012, 01:46
Re: login problem - by Devilxz97 - 27.07.2012, 01:48
Re: login problem - by Youice - 27.07.2012, 01:51
Re: login problem - by Marlon_Lorran - 27.07.2012, 01:54
Re: login problem - by Youice - 27.07.2012, 02:03
Re: login problem - by Marlon_Lorran - 27.07.2012, 02:08
Re: login problem - by Youice - 27.07.2012, 02:10
Re: login problem - by Devilxz97 - 27.07.2012, 02:15
Re: login problem - by Marlon_Lorran - 27.07.2012, 02:20
Re: login problem - by Youice - 27.07.2012, 02:44

Forum Jump:


Users browsing this thread: 3 Guest(s)