Slap command returns an Unknown Command when player is not connected
#16

Try these two.
pawn Код:
case DIALOG_LOGIN: {
    if(!response) return Kick(playerid);
    new
        strText[179], naslov2[128];

    if(!strlen(inputtext)) {
        format(naslov2, sizeof(naslov2), ""COL_GREEN2"     Welcome"COL_WHITE" %s!", GetName(playerid)); //formating our title
        format(strText, 179, ""COL_WHITE"______________________________\n\n"COL_GREEN2"Name"COL_WHITE" %s"COL_GREEN2" is registered!", GetName(playerid)); //formating our text
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, naslov2, strText, "Login", "Exit");
        return 1;
    }
    OnPlayerLogin(playerid, inputtext); //loading stats
}
pawn Код:
OnPlayerLogin(playerid, password[]) {
    new
        hashPassword[129], uFile[35];

    format(uFile, 35, USER_FILE, GetName(playerid));
    INI_ParseFile(uFile, "LoadUserData", .bExtra = true, .extra = playerid);
    WP_Hash(hashPassword, 129, password);
    if(!strcmp(PlayerInfo[playerid][pPassword], hashPassword, true)) {
        format(naslov2, sizeof(naslov2), ""COL_GREEN2"     Welcome"COL_WHITE" %s!", GetName(playerid)); //formating our title
        format(strText, 179, ""COL_WHITE"______________________________\n\n"COL_GREEN2"Name"COL_WHITE" %s"COL_GREEN2" is registered!\n\n{F81414}You typed wrong password!", GetName(playerid)); //formating our text
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, naslov2, strText, "Login", "Exit");
        return 1;
    }
    SetPVarInt(playerid, "Logged", 1); //setting PVar that palyer is logged in
    return 1;
}
Reply


Messages In This Thread
Login Issue - by HydraX - 31.07.2011, 04:42
Re: Slap command returns an Unknown Command when player is not connected - by [HiC]TheKiller - 31.07.2011, 04:51
Re: Slap command returns an Unknown Command when player is not connected - by HydraX - 31.07.2011, 04:55
Re: Slap command returns an Unknown Command when player is not connected - by HydraX - 31.07.2011, 05:00
Re: Slap command returns an Unknown Command when player is not connected - by Runedog48 - 31.07.2011, 05:01
Re: Slap command returns an Unknown Command when player is not connected - by HydraX - 31.07.2011, 05:04
Re: Slap command returns an Unknown Command when player is not connected - by HydraX - 31.07.2011, 05:11
Re: Slap command returns an Unknown Command when player is not connected - by Jack_Leslie - 31.07.2011, 05:34
Re: Slap command returns an Unknown Command when player is not connected - by HydraX - 31.07.2011, 17:25
Re: Slap command returns an Unknown Command when player is not connected - by Toreno - 31.07.2011, 17:49
Re: Slap command returns an Unknown Command when player is not connected - by iPLEOMAX - 31.07.2011, 17:57
Re: Slap command returns an Unknown Command when player is not connected - by Toreno - 31.07.2011, 18:20
Re: Slap command returns an Unknown Command when player is not connected - by HydraX - 31.07.2011, 20:08
Re: Slap command returns an Unknown Command when player is not connected - by Toreno - 31.07.2011, 20:56
Re: Slap command returns an Unknown Command when player is not connected - by HydraX - 01.08.2011, 02:28
Re: Slap command returns an Unknown Command when player is not connected - by Toreno - 01.08.2011, 04:59
Re: Slap command returns an Unknown Command when player is not connected - by HydraX - 01.08.2011, 05:19

Forum Jump:


Users browsing this thread: 2 Guest(s)