27.07.2012, 02:03
Quote:
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]); } I hope I have helped |