Raised This Month: $12 Target: $400
 3% 

Bug Reports: compile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zheldorg
Junior Member
Join Date: Aug 2020
Old 02-11-2022 , 11:45   Bug Reports: compile
Reply With Quote #1

The same file in different compilers. In sm 11, the compiler will ignore the error at line 470, the MaxClients() function does not exist, a typo when using the MaxClients variable. The sm 10 compiler finds a problem. Attached file

sourcemod-1.11.0-git6851

//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// l4d2_portals(for_report).sp
//
// \\192.168.138.210\Serv\apps\l4d2\left4dead2\a ddons\sourcemod\scripting\l4d2_portals(for_re port).sp(46 : warning 242: function "TraceEntityFilterPlayer" should return an explicit value
//
// Compilation Time: 0.48 sec
// ----------------------------------------

Press enter to exit ...

sourcemod-1.10.0-git6528

//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// l4d2_portals(for_report).sp
//
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (27) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePa...x#Enum_Structs
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (2 : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePa...x#Enum_Structs
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (315) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePa...x#Enum_Structs
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (31 : warning 229: index tag mismatch (symbol "datArray")
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (337) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePa...x#Enum_Structs
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (33 : warning 229: index tag mismatch (symbol "datArray")
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (443) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePa...x#Enum_Structs
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (444) : warning 229: index tag mismatch (symbol "datArray")
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (470) : error 012: invalid function call, not a valid address
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (470) : error 029: invalid expression, assumed zero
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (470) : warning 215: expression has no effect
// D:\ScmdServers\apps\l4d2\left4dead2\addons\so urcemod\scripting\l4d2_portals(for_report).sp (471) : warning 209: function "TraceEntityFilterPlayer" should return a value
//
// 2 Errors.
//
// Compilation Time: 0.14 sec
// ----------------------------------------

Press enter to exit ...
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_portals(for_report).sp - 100 views - 15.9 KB)
Zheldorg is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-11-2022 , 16:03   Re: Bug Reports: compile
Reply With Quote #2

Just remove the () from MaxClients (line 470)

If you want that some dev checking this better post on Github https://github.com/alliedmodders/sourcemod/issues
__________________
Marttt is offline
Zheldorg
Junior Member
Join Date: Aug 2020
Old 02-11-2022 , 17:13   Re: Bug Reports: compile
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
Just remove the () from MaxClients (line 470)

If you want that some dev checking this better post on Github https://github.com/alliedmodders/sourcemod/issues
You misunderstood, I know that MaxClients() is wrong and sourcemod 1.10 knows it, but sourcemod 1.11 sees no problem with that. I'm just announcing it. I don't see the report thread sourcemod's. I received a technical education in the field of programming and it was a very long time ago, now I write code based on the "left 4 dead 2" hobby and I have little orientation in this, breeding rabbits is what I do mainly.
Zheldorg is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-12-2022 , 08:18   Re: Bug Reports: compile
Reply With Quote #4

Quote:
Originally Posted by Marttt View Post
If you want that some dev checking this better post on Github https://github.com/alliedmodders/sourcemod/issues
__________________
Marttt is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-12-2022 , 12:11   Re: Bug Reports: compile
Reply With Quote #5

This was likely fixed with https://github.com/alliedmodders/sourcepawn/issues/750, which hasn't landed in SourceMod yet.
__________________
asherkin is offline
Reply


Thread Tools
Display Modes

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 10:57.


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