Whats wrong? :S
#4

pawn Код:
public OnPlayerConnect(playerid)
{
    ResetPlayerCash(playerid);
    print("Reset Cash Done");

    TextDrawHideForPlayer(playerid, Textdraw_team);
    TextDrawHideForPlayer(playerid, Textdraw_weaps);
    print("Textdraw Hide Done");

    TogglePlayerSpectating(playerid, 1);
    IsLogged[playerid] = 0;
    print("Toggle, and Islogged Done");

    new file[128], string[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(file,sizeof(file),"/Users/%s.ini",name);
    print("File info done");

    if(!fexist(file))
    {
        format(string, sizeof string, ""Blue"Hello %s!\n\n"Green"[System]"White" Welcome to "Red"Future Freedom "White"\nPlease write a password below:", GetName(playerid));
        ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, ""Red"Account Registration", string, "Register", "Leave");
    }
    else
    {
        format(string, sizeof string, ""Blue"Hello %s!\n\n"Green"[System]"White" Welcome back to "Red"Future Freedom "White"\nPlease write your password below:", GetName(playerid));
        ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, ""Red"Account Login", string, "Login", "Leave");
    }
    print("OnPlayerConnect was successful");
    return 1;
}
Try that, also, let me know what prints when you start the server.
Reply


Messages In This Thread
Whats wrong? :S - by Markx - 29.05.2011, 08:27
Re: Whats wrong? :S - by alpha500delta - 29.05.2011, 08:41
Re: Whats wrong? :S - by Markx - 29.05.2011, 08:54
Re: Whats wrong? :S - by [L3th4l] - 29.05.2011, 09:07
Re: Whats wrong? :S - by Markx - 29.05.2011, 09:16
Re: Whats wrong? :S - by Finn - 29.05.2011, 09:20
Re: Whats wrong? :S - by Toreno - 29.05.2011, 09:26
Re: Whats wrong? :S - by Markx - 29.05.2011, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)