SA-MP Forums Archive
Help please ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please ! (/showthread.php?tid=156699)



Help please ! - Danielo - 23.06.2010

While compiling those
1. http://pastebin.com/myukxSGc
2. http://pastebin.com/FEiPxsc2

Gives me those errors :
1.
Код:
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_HO~1\Untitled.pwn(31) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_HO~1\Untitled.pwn(41) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_HO~1\Untitled.pwn(42) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_HO~1\Untitled.pwn(43) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_HO~1\Untitled.pwn(47) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_HO~1\Untitled.pwn(49) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_HO~1\Untitled.pwn(57) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_HO~1\Untitled.pwn(124) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
2.
Код:
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_TR~1\truck.pwn(23) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_TR~1\truck.pwn(33) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_TR~1\truck.pwn(34) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_TR~1\truck.pwn(35) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_TR~1\truck.pwn(40) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_TR~1\truck.pwn(42) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_TR~1\truck.pwn(50) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\Generale\SAMP\FILESC~1\_FS_TR~1\truck.pwn(60) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.



Re: Help please ! - DJDhan - 23.06.2010

Those warnings can be ignored.

Better to indent your code by "tabbing".


Re: Help please ! - Kar - 23.06.2010

#pragma tabsize 0

at the top of your script


Re: Help please ! - Luka P. - 23.06.2010

This is an example of unindented code.
pawn Код:
stock function(){
new something[50];
 format(something, sizeof(something), "this is my text");
  return 0;
}
It should be something like this

pawn Код:
stock function()
{
    new something[50];
    format(something, sizeof(something), "this is my text");
    return 0;
}
I hope you understand what I ment.
You can indent your code by tabbing like DJDhan said already, or you can just
pawn Код:
#pragma tabsize 0
at top of your script... Either way it will work, but I suggest you indenting your code by tabbing, it is better for you, because then you will be able to read your code 'better'.

EDIT: Sorry Kar, didn't saw ur message.


Re: Help please ! - Kar - 23.06.2010

lol its ok