27.07.2012, 01:54
Well it's a silly mistake, you can use the conditional operator ! different means.
I will show how your code using the conditional operator !
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
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]); }
I hope I have helped