Loose indentation, what do i do?
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
In the command /buyhouse, there are 41 opened brackets and 40 closed so you missed 1 closed bracket -> }

And what is that?
pawn Код:
...

                        if(HInfo[hi][hPrice] > pInfo[playerid][pMoney])
                        {
                            SendClientMessage(playerid, COLOR_RED, "You cannot afford to purchase this house!");
                            return 1;
                        }
                        {
                            {
                                {
                                    {
                                        SendClientMessage(playerid, COLOR_RED, "An unknown error occured while fetching house owners data.");
                                        return 1;
                                    }
                                    if(IsHouse1 == 1)
                                    {
                                        return 1;
                                    }
                                    else if(IsHouse2 == 1)
                                    {
                                        return 1;
                                    }
                                }
                            }
                        }
too many useless opened brackets
As i said, i removed some of it as i don't want to show the whole script i spend ages on making.

EDIT: thanks, it worked.
Reply


Messages In This Thread
Loose indentation, what do i do? - by Jimmy0wns - 02.01.2014, 13:38
Re: Loose indentation, what do i do? - by Dignity - 02.01.2014, 13:46
Re: Loose indentation, what do i do? - by EiresJason - 02.01.2014, 13:48
Re: Loose indentation, what do i do? - by Jimmy0wns - 02.01.2014, 13:55
Re: Loose indentation, what do i do? - by Hansrutger - 02.01.2014, 13:57
Re: Loose indentation, what do i do? - by Konstantinos - 02.01.2014, 13:59
Re: Loose indentation, what do i do? - by Jimmy0wns - 02.01.2014, 14:02
Re: Loose indentation, what do i do? - by Pottus - 02.01.2014, 14:06
Re: Loose indentation, what do i do? - by Jimmy0wns - 02.01.2014, 15:01

Forum Jump:


Users browsing this thread: 1 Guest(s)