Loose identitation -
valentinorossi16 - 10.07.2010
Hi , i need help with my gm , my GM have the objects on a filtrerscript , when i need add some objects on Gamemodeinit the filtrerscript dissapear .
I have these warnings:
C:\Users\CWalk3r\Desktop\Server\gamemodes\SU.pwn(3 93) : warning 217: loose indentation
C:\Users\CWalk3r\Desktop\Server\gamemodes\SU.pwn(1 484) : warning 217: loose indentation
C:\Users\CWalk3r\Desktop\Server\gamemodes\SU.pwn(5 674) : warning 203: symbol is never used: "help"
C:\Users\CWalk3r\Desktop\Server\gamemodes\SU.pwn(5 674) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.
Llines are:
393: SetTimer("fightstyle", 710000,1);
1484: CreateObject(16092,-302.59484863,1508.48767090,74.35937500,0.00000000, 0.00000000,271.99951172); //object(des_pipestrut05) (1)
Line 5674 don't exist .
And i put #pragma tabsize 0
P.S: Sorry , I'm bad speaking english .
Re: Loose identitation - TheInnocentOne - 10.07.2010
To fix the "loose indentation" simply make sure that line is in line with the code above it.
To fix the other two issues, add this to the top of your script (not in a callback):
pawn Код:
#pragma unused help, strtok
Re: Loose identitation -
OverSwap - 10.07.2010
in the start of ur mod type this:
PHP код:
#pragma tabsize 0
Re: Loose identitation -
Killa_ - 10.07.2010
Quote:
Originally Posted by OverSwap
in the start of ur mod type this:
PHP код:
#pragma tabsize 0
|
Dont type tht, use this
http://dracoblue.net/tidy/pawn/
Re: Loose identitation -
valentinorossi16 - 10.07.2010
What i need to fix here ?
/imageshack/img413/5862/pawn.png
Warning on line 392
C:\Users\CWalk3r\Desktop\Server\gamemodes\SU.pwn(3 92) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Re: Loose identitation -
Grim_ - 10.07.2010
Go in front of each "CreateObject" line and press the TAB button. Until they're all aligned with the SetTimer functions.
Re: Loose identitation -
Adil - 10.07.2010
Make the CreateObject's code horizontally equal to the SetTimer code below.
EDIT:
Quote:
Originally Posted by Grim_
Go in front of each "CreateObject" line and press the TAB button. Until they're all aligned with the SetTimer functions.
|
He only needs to press tab once, since he needs to go forward four spaces and the Tab forwards four spaces itself.
Re: Loose identitation -
Grim_ - 10.07.2010
I never said he had to press it more than once, all I said was press TAB in front of each CreateObject function, because those are the ones that aren't aligned.
Re: Loose identitation -
valentinorossi16 - 10.07.2010
Thanks thanks thanks , it work .
I love this community .