Help loose identation
#2

Well the warning pretty much tells you don't know how to (properly) indent your code.

pawn Код:
if(strcmp(cmd, "/login", true) == 0)
{
    if(logged[playerid] == 1) //checks if a player is logged in in his account
    {
        SendClientMessage(playerid, COLOR_RED, "You are already logged in!"); return 1;
    }
    else
    {
        if(dini_Exists(pname)) //checks of the player have already made an account
        {
            ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel");
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You are not registered. Please register by using /register"); return 1;
        }
    }
   
    return 1;
}
Reply


Messages In This Thread
Help loose identation - by MasterB - 30.04.2010, 17:52
Re: Help loose identation - by Virtual1ty - 30.04.2010, 17:55
Re: Help loose identation - by MasterB - 30.04.2010, 18:04
Re: Help loose identation - by RyDeR` - 30.04.2010, 18:14
Re: Help loose identation - by smeti - 30.04.2010, 18:36

Forum Jump:


Users browsing this thread: 2 Guest(s)