27.07.2012, 01:46
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:
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
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]);
}
Edit:dialog ids are not similar or even mixed with each other


