Guys help fast PLEASEEE.
#1

Okay well I mapped few things in Editor and when I add them in pawno I dont get spaces if you know what I mean.On previous map I have space on each object and I forgot how I added it there.Is there any solution for this.Here is one screen shot of what I mean.

http://i.imgur.com/7furJ1X.png

It might sound silly for you but still I am new in this.
Reply
#2

That shouldn't cause any problems anyways.
Reply
#3

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
That shouldn't cause any problems anyways.
It give me error

C:\Users\Nađ\Desktop\ClanMap By Pro_LiZzy\gamemodes\clan.pwn(571) : warning 217: loose indentation
C:\Users\Nađ\Desktop\ClanMap By Pro_LiZzy\gamemodes\clan.pwn(792) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.


And if I fix these two I get more and it keep going like that
Reply
#4

This thread would help you out, to fix the warning Loose Indentation
Link: https://sampforum.blast.hk/showthread.php?tid=256961

or use this link(link below) to tidy/indent your code
Link: http://dracoblue.net/tidy/pawn/
Reply
#5

Ok i have found the mistake! Paste the line starting from 570!
Reply
#6

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
This thread would help you out, to fix the warning Loose Indentation
Link: https://sampforum.blast.hk/showthread.php?tid=256961

or use this link(link below) to tidy/indent your code
Link: http://dracoblue.net/tidy/pawn/
Dude I know whats error I am wondering how I can automaticly place spaces.
Reply
#7

Quote:
Originally Posted by Ninad
Посмотреть сообщение
Ok i have found the mistake! Paste the line starting from 570!
Be careful; the screenshot already has all the lines.

On topic:

Loose indention is when the lines are not aligned correctly, i.e. something like this:

pawn Код:
public OnGameModeInit()
{
     Code1;
          Code2;
     {
                    Code3;
          }
                         Code4;
}
Would be incorrect and return the loose indention error, however, something like this:

pawn Код:
public OnGameModeInit()
{
     Code1;
     Code2;
     {
          Code3;
     }
     Code4;
}
Is correct because it's all aligned. It's the same problem in the SS you gave us.

More:

To add more spaces, you need to go to the start of the line and press TAB. If you want to do it to multiple lines, select the lines (at least 2) and then press TAB.
Reply
#8

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Be careful; the screenshot already has all the lines.

On topic:

Loose indention is when the lines are not aligned correctly, i.e. something like this:

pawn Код:
public OnGameModeInit()
{
     Code1;
          Code2;
     {
                    Code3;
          }
                         Code4;
}
Would be incorrect and return the loose indention error, however, something like this:

pawn Код:
public OnGameModeInit()
{
     Code1;
     Code2;
     {
          Code3;
     }
     Code4;
}
Is correct because it's all aligned. It's the same problem in the SS you gave us.

More:

To add more spaces, you need to go to the start of the line and press TAB. If you want to do it to multiple lines, select the lines (at least 2) and then press TAB.
If DanishHaq here, ur problems must be solved!
Reply
#9

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Be careful; the screenshot already has all the lines.

On topic:

Loose indention is when the lines are not aligned correctly, i.e. something like this:

pawn Код:
public OnGameModeInit()
{
     Code1;
          Code2;
     {
                    Code3;
          }
                         Code4;
}
Would be incorrect and return the loose indention error, however, something like this:

pawn Код:
public OnGameModeInit()
{
     Code1;
     Code2;
     {
          Code3;
     }
     Code4;
}
Is correct because it's all aligned. It's the same problem in the SS you gave us.

More:

To add more spaces, you need to go to the start of the line and press TAB. If you want to do it to multiple lines, select the lines (at least 2) and then press TAB.
Dude listen I know whats the problem.I need spaces but I cant add spaces in 500+ lines.These previous lines on picture were added just by pressing CTL+V wich I copyed from editor and space already was there.
Reply
#10

Quote:
Originally Posted by Pro_LiZzy
Посмотреть сообщение
Dude listen I know whats the problem.I need spaces but I cant add spaces in 500+ lines.These previous lines on picture were added just by pressing CTL+V wich I copyed from editor and space already was there.
Yes I know. I did say at the end too if you bothered to read how to add those spaces.

Quote:

More:

To add more spaces, you need to go to the start of the line and press TAB. If you want to do it to multiple lines, select the lines (at least 2) and then press TAB.

This is the only way it will work, you can't just copy + paste the script and then expect all the indention to be perfect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)