Raised This Month: $32 Target: $400
 8% 

Weird compiling bug SM 1.6/1.8


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sillicon
Junior Member
Join Date: Sep 2016
Location: Poland
Old 10-24-2016 , 01:13   Weird compiling bug SM 1.6/1.8
Reply With Quote #1

I have compiled double_get-up_fix-l4d2.sp plugin from [L4D2] Get-Up Fixes Reloaded
and get warning:
Quote:
SPEdit 1.1.3.0
Configuration: Standard SM 1.6.0

Code:
double_get-up_fix-l4d2.sp
double_get-up_fix-l4d2.sp(56) : warning 217: loose indentation
Done
SPEdit 1.1.3.0
Configuration: Standard SM 1.8.0.5914

Code:
double_get-up_fix-l4d2.sp
double_get-up_fix-l4d2.sp(56) : warning 217: loose indentation
Done
First idea is SPEdit messed up.
Quote:
Sourcemod-1.6.4-git4625(Windows)
SPCOMP
Code:
SourcePawn Compiler 1.6.4-dev+4625
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

double_get-up_fix-l4d2.sp(56) : warning 217: loose indentation
Header size:           3464 bytes
Code size:            11508 bytes
Data size:             3196 bytes
Stack/heap size:      16384 bytes; Total requirements:   34552 bytes

1 Warning.
AFTER FIX
Code:
double_get-up_fix-l4d2_fixed.sp
SourcePawn Compiler 1.6.4-dev+4625
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

Header size:           3464 bytes
Code size:            11508 bytes
Data size:             3196 bytes
Stack/heap size:      16384 bytes; Total requirements:   34552 bytes
Quote:
CTRL+C CTRL+V
Code contains bug:
Code:
	HookEvent("player_hurt", OnPlayerHurt);
Fixed code:
Code:
    HookEvent("player_hurt", OnPlayerHurt);
Visually code looks same in editors, but second actually replaced with spaces works.
What kind of daemon makes that possible?
sillicon is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-24-2016 , 01:42   Re: Weird compiling bug SM 1.6/1.8
Reply With Quote #2

The warning is self-explanatory. Indentation is inconsistent. This affects readability of code; it does not affect the compiled plugin in any way. This is why the numbers describing the compiled plugin are identical both before and after fixing the issue.
__________________
ddhoward is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 11-21-2016 , 16:28   Re: Weird compiling bug SM 1.6/1.8
Reply With Quote #3

only need put this in code top
and finish losse identantion
#pragma tabsize 0

Last edited by Emilio3; 11-21-2016 at 16:32.
Emilio3 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 11-21-2016 , 23:48   Re: Weird compiling bug SM 1.6/1.8
Reply With Quote #4

Quote:
Originally Posted by Emilio3 View Post
only need put this in code top
and finish losse identantion
#pragma tabsize 0
^ Probably shouldn't use that. No reason to use it, all it does is ignore indentation which is a bad thing
headline is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode