Some warnings [+rep for helpers] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Some warnings [+rep for helpers] (
/showthread.php?tid=465860)
Some warnings [+rep for helpers] -
jamesmercer1947 - 24.09.2013
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/
Re: Some warnings [+rep for helpers] -
Konstantinos - 24.09.2013
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.
Re: Some warnings [+rep for helpers] -
Bingo - 24.09.2013
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.
Re: Some warnings [+rep for helpers] -
Problems - 24.09.2013
Just put this under your Includes
Re: Some warnings [+rep for helpers] -
JamesH - 25.09.2013
Quote:
Originally Posted by Problems
Just put this under your Includes
|
Just fix them its the not the correct order. Use TAB and TAB+SHIFT.