AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Bug Reports: compile (https://forums.alliedmods.net/showthread.php?t=336316)

Zheldorg 02-11-2022 11:45

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 ...

Marttt 02-11-2022 16:03

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

Zheldorg 02-11-2022 17:13

Re: Bug Reports: compile
 
Quote:

Originally Posted by Marttt (Post 2771190)
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.

Marttt 02-12-2022 08:18

Re: Bug Reports: compile
 
Quote:

Originally Posted by Marttt (Post 2771190)
If you want that some dev checking this better post on Github https://github.com/alliedmodders/sourcemod/issues


asherkin 02-12-2022 12:11

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.