ONPlayerConnect
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    Password[playerid] = CreatePlayerTextDraw(playerid, 301.311187, 181.416687, "Enter Password...");
    PlayerTextDrawLetterSize(playerid, Password[playerid], 0.274000, 1.092499);
    PlayerTextDrawAlignment(playerid, Password[playerid], 1);
    PlayerTextDrawColor(playerid, Password[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Password[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Password[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Password[playerid], 51);
    PlayerTextDrawFont(playerid, Password[playerid], 2);
    PlayerTextDrawSetProportional(playerid, Password[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Password[playerid], true);
   
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        PlayerTextDrawShow(playerid, Password[playerid]);
        TextDrawShowForPlayer(playerid, RegisterBox);
        TextDrawShowForPlayer(playerid, PasswordBox);
        TextDrawShowForPlayer(playerid, RegisterWelcome);
        TextDrawShowForPlayer(playerid, RegisterNext);
        TextDrawShowForPlayer(playerid, RegisterUnderline);
        TogglePlayerSpectating(playerid, 1);
        SelectTextDraw(playerid, 0xFF000088);
    }
    return 1;
}
Here, this should work.

Try to indent your code to understand it better even yourself. You would've got the problem if your code was neatly indented.
Reply


Messages In This Thread
ONPlayerConnect - by X|Dragon|X - 12.01.2015, 22:02
Re: ONPlayerConnect - by iReacheR - 12.01.2015, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)