Login Almost Working
#4

pawn Код:
public OnPlayerConnect(playerid)
{
    if (dini_Exists(udb_encode(playername)))
    {
    SendClientMessage(playerid,COLOR_RED,"Please login! Use /login [Password]");
    }
    else SendClientMessage(playerid,COLOR_RED,"Ur not registered! Please use /register [Password]");
       
    logged[playerid] = 0;
    new name[MAX_PLAYER_NAME],string[32];
    SetPlayerColor(playerid, COLOR_PINK);
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"%s has joined the server",name);
    SendClientMessageToAll(COLOR_GREY,string);
    return 1;
}
You need brackets for if statements.
Reply


Messages In This Thread
Login Almost Working - by dclaw - 07.01.2011, 19:29
Re: Login Almost Working - by dclaw - 07.01.2011, 19:42
Re: Login Almost Working - by alpha500delta - 07.01.2011, 19:45
Re: Login Almost Working - by John_F - 07.01.2011, 22:06
Still not working - by dclaw - 08.01.2011, 09:27

Forum Jump:


Users browsing this thread: 3 Guest(s)