How to make these two work together?
#1

pawn Код:
//OnPlayerConnect
    new name[24], ip[16];
    GetPlayerIp(playerid, ip, sizeof ip);
    GetPlayerName(playerid, name, sizeof name);
    for(new id; < 24; id++)
    {
        if(!strmcp(name,TempBans[id][BannedName]))
        {
            SendClientMessage(playerid, Red,"Your ban has not expired");
            Kick(playerid);
            return 1;
        }

        if(!strmcp(ip,TempBans[id][BannedIP]))
        {
            SendClientMessage(playerid, Red, "Your ban has not expired");
            Kick(playerid);
            return 1;
        }
    }
    return 1;


pawn Код:
//OnPlayerConnect
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    if(fexist(Path(playerid)))
    {
        INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid,login,DIALOG_STYLE_INPUT,"Login","Welcome Back!\n Please login with your password","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid,register,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.\nPlease enter the password!","Register","Quit");
        return 1;
    }
    return 1;
}
Can't really figure it out since I am getting shit loads of errors.
Reply


Messages In This Thread
How to make these two work together? - by PrezyI - 08.08.2013, 00:34
Re: How to make these two work together? - by Vanter - 08.08.2013, 00:44
Re: How to make these two work together? - by PrezyI - 08.08.2013, 00:58
Re: How to make these two work together? - by Vanter - 08.08.2013, 01:05
Re: How to make these two work together? - by Elysian` - 08.08.2013, 05:03

Forum Jump:


Users browsing this thread: 2 Guest(s)