PDA

View Full Version : 4 warning 217


Quez
07/07/2014, 08:58 AM
C:\Users\Berk\Desktop\FSLER\samp03z_svr_R1_win32 (1)\filterscripts\guvenlibolge.pwn(47) : warning 217: loose indentation
C:\Users\Berk\Desktop\FSLER\samp03z_svr_R1_win32 (1)\filterscripts\guvenlibolge.pwn(58) : warning 217: loose indentation
C:\Users\Berk\Desktop\FSLER\samp03z_svr_R1_win32 (1)\filterscripts\guvenlibolge.pwn(63) : warning 217: loose indentation
C:\Users\Berk\Desktop\FSLER\samp03z_svr_R1_win32 (1)\filterscripts\guvenlibolge.pwn(84) : warning 217: loose indentation
C:\Users\Berk\Desktop\FSLER\samp03z_svr_R1_win32 (1)\filterscripts\guvenlibolge.pwn(93) : warning 217: loose indentation

47 line: while(iIndex < sizeof(SafeZoneInfo) && fread(iFileHandle, szFileStr)) {

58 line: if(SafeZoneInfo[iIndex][szPosX] != 0.0)

63 line: ++iIndex;

84 line: for(new Sz; Sz < MAX_SZ; Sz++)

93 line: GetPlayerHealth(playerid,php);

Jack_Leslie
07/07/2014, 09:04 AM
We need to see the entire code when it comes to loose indentation. Loose indentation is caused by bad tab space. If that's the right word.

Here is an example of good and then bad tab spacing:

CMD:(playerid, params[])
{
new check;
if(check)
{
boo = 1;
}
else
{
boo = 2;
}
return 1;
}

CMD:boo(playerid, params[])
{
new check
if(check)
{
boo = 1;
}
else
{
boo = 2;
}
return 1;
}