What does this mean?
#10

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
You're completely wrong...

On topic:

pawn Код:
public OnPlayerConnect(playerid)
{
    new file[64],PlayerName[25];//Creating a variable where we can store the file path, and the variable to store the player's name.
    GetPlayerName(playerid,PlayerName,sizeof PlayerName);//Storing the players name in the PlayerName variable.
    format(file,sizeof file,"Admin/%s.ini",PlayerName);//Storing the file path with the players name.
    if(!fexist(file))//Checking if the file exists
    {//Here goes the stuff you want to do if the user is not registered.
        SendClientMessage(playerid,-4,"You are not registered! Please use /register <password>");
    }
    else
    {//Here goes the stuff you want to do if the user is registered.
        SendClientMessage(playerid,-4,"You are registered! Use /login <password>");
    }

    FloodByPlayer[playerid] = 0;
    FloodTimer[playerid] = SetTimerEx("FloodCheck",MAX_FLOOD_RATE_SECS,true,"i",playerid);
    return true;
}

public OnPlayerDisconnect(playerid,reason)
{
    PInfo[playerid][Logged] = 0;//Setting the logged in variable to 0.
    FloodByPlayer[playerid] = 0;
    KillTimer(FloodTimer[playerid]);
    return 1;
}
Thank you! But Now I get Loose Identation on Line

pawn Код:
public OnPlayerText(playerid, text[]) {
{
    FloodByPlayer[playerid] = FloodByPlayer[playerid] +1;
}
    return true;
}
267 is return true;
Reply


Messages In This Thread
What does this mean? - by xSiiLenTx - 19.08.2012, 16:27
Re: What does this mean? - by Arca - 19.08.2012, 16:30
Re: What does this mean? - by Lordzy - 19.08.2012, 16:31
Re: What does this mean? - by Sig Hansen - 19.08.2012, 16:31
Re: What does this mean? - by xSiiLenTx - 19.08.2012, 16:36
Re: What does this mean? - by Sig Hansen - 19.08.2012, 16:37
Re: What does this mean? - by xSiiLenTx - 19.08.2012, 16:49
Re: What does this mean? - by ELiiTEJaMzZ - 19.08.2012, 16:51
Re: What does this mean? - by SuperViper - 19.08.2012, 17:02
Re: What does this mean? - by xSiiLenTx - 19.08.2012, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)