loose indentation HELP
#8

That warnings says the indentation of your script is bad. You have to add an extra tab (or 4 spaces) in front of each line after you use an opening-bracket '{' and remove a tab (or 4 spaces) in front of each line after you used a closing-bracket '}'. This will make your script more readable. Without proper indentation your script will look like a mess. (Like Stuun's code here above).

Example:

pawn Код:
cmd:hello(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, -1, "Hello");
            RemovePlayerFromVehicle(playerid);
        }
        else
        {
            SendClientMessage(playerid, -1, "Bye");
        }
    }
    return 1;
}
Reply


Messages In This Thread
loose indentation HELP FAST!!!! - by robibacsii - 10.12.2014, 18:14
Re: loose indentation HELP - by bogushas - 10.12.2014, 18:17
Re: loose indentation HELP - by robibacsii - 10.12.2014, 18:22
Re: loose indentation HELP - by Glossy42O - 10.12.2014, 18:24
Re: loose indentation HELP - by robibacsii - 10.12.2014, 18:52
Re: loose indentation HELP - by Schneider - 10.12.2014, 18:52
Re: loose indentation HELP - by robibacsii - 10.12.2014, 18:55
Re: loose indentation HELP - by Schneider - 10.12.2014, 18:58
Re: loose indentation HELP - by robibacsii - 10.12.2014, 19:07
Run time Error 19 HELP! - by robibacsii - 11.12.2014, 07:07

Forum Jump:


Users browsing this thread: 1 Guest(s)