Camera affected by dialog
#1

I added this at onplayerconnect
Код:
InterpolateCameraPos(playerid, 1476.143310, -1637.729248, 40.966156, 1481.309326, -1729.007202, 13.453255, 6000);
	InterpolateCameraLookAt(playerid, 1476.857177, -1637.901977, 36.020389, 1481.305541, -1732.989746, 16.476329, 3500);
And if I remove this:
Код:
if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Basic Roleplay","Type your password below to login:","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Basic Roleplay","Type your password below to register a new account:","Register","Quit");
    }
it wont work anymore, any idea?
Reply
#2

Show the entire OnPlayerConnect callback.
Reply
#3

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Show the entire OnPlayerConnect callback.
While I was copying the OnPlayerConnect I got an idea, that was to use a timer and the timer fixed the issue, thanks anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)