login problem
#5

Quote:
Originally Posted by Marlon_Lorran
Посмотреть сообщение
Well it's a silly mistake, you can use the conditional operator ! different means.

I will show how your code using the conditional operator !


Код:
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]);
			}
Well as I said above, notice now if (!dini_Exists(string)) if the file does not exist and the record will show if there is display the login.

I hope I have helped
okay thanks, but, nope you are wrong, "ShowDialogID(playerid, 1);" << = register , "ShowDialogID(playerid, 2);" <<= Login, and thanks for helping, and if I didn't get it, please post a reply
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: 1 Guest(s)