Bug Reports: compile
1 Attachment(s)
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(468) : 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 (28) : 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 (318) : 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 (338) : 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 ... |
Re: Bug Reports: compile
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 |
Re: Bug Reports: compile
Quote:
|
Re: Bug Reports: compile
Quote:
|
Re: Bug Reports: compile
This was likely fixed with https://github.com/alliedmodders/sourcepawn/issues/750, which hasn't landed in SourceMod yet.
|
All times are GMT -4. The time now is 12:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.