Some warnings [+rep for helpers]
#1

Hello, there are 10 warning in my script..

Код:
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(19517) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(27188) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(27616) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(27621) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(28285) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(28351) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(28375) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(28527) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(28532) : warning 217: loose indentation
D:\Harkishan\GTA\Server\Scripts\RGRP\gamemodes\RGRP.pwn(46938) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Warnings.
Can anyone fix it?

Here is the .pwn
http://www.solidfiles.com/d/43aaa24825/

Includes
http://www.solidfiles.com/d/89648bbee4/

Whole the script (windows)
http://www.solidfiles.com/d/b74571ffe8/
Reply
#2

lol

It's that easy that you can fix it yourself. Look an example:

pawn Код:
// Ban Indentation:
public OnPlayerSpawn( playerid )
{
 GivePlayerWeapon( playerid, 24, 5000 );
   GivePlayerWeapon( playerid, 34, 5000 );
GivePlayerWeapon( playerid, 31, 5000 );
       GivePlayerWeapon( playerid, 26, 5000 );
    return 1;
}
AND

pawn Код:
// Good Indentation:
public OnPlayerSpawn( playerid )
{
    GivePlayerWeapon( playerid, 24, 5000 );
    GivePlayerWeapon( playerid, 34, 5000 );
    GivePlayerWeapon( playerid, 31, 5000 );
    GivePlayerWeapon( playerid, 26, 5000 );
    return 1;
}
It's easy, isn't it?

Goto the lines and make sure the code is indented nicely!

EDIT: Wrong section, it should be in 'Scripting Help' section.
Reply
#3

Don't worry, Your gamemode is compiled properl, It's just error to alert you that codes are not in proper coloumns. As our brother Konstant shown.
Reply
#4

Just put this under your Includes
pawn Код:
#pragma tabsize 0
Reply
#5

Quote:
Originally Posted by Problems
Посмотреть сообщение
Just put this under your Includes
pawn Код:
#pragma tabsize 0
Just fix them its the not the correct order. Use TAB and TAB+SHIFT.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)