Loose identitation
#1

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 .
Reply
#2

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
Reply
#3

in the start of ur mod type this:
PHP код:
#pragma tabsize 0 
Reply
#4

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/
Reply
#5

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.
Reply
#6

Go in front of each "CreateObject" line and press the TAB button. Until they're all aligned with the SetTimer functions.
Reply
#7

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.
Reply
#8

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.
Reply
#9

Thanks thanks thanks , it work .

I love this community .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)