MomSurfFix icon indicating copy to clipboard operation
MomSurfFix copied to clipboard

Compile errors on sp 1.12+

Open Smesh292 opened this issue 9 months ago • 1 comments

Sourcemod: 1.12.0.7183 Metamod: 1.11.0-dev+1155

// momsurffix\utils.sp(211) : error 001: expected token: ")", but found "," // 211 | ASSERT_FMT(entry.addr != Address_Null, "Failed to allocate memory (size: %i)!", size); // ------------------------------------------------------^ // // momsurffix\utils.sp(211) : error 001: expected token: ";", but found ")" // 211 | ASSERT_FMT(entry.addr != Address_Null, "Failed to allocate memory (size: %i)!", size); // -------------------------------------------------------------------------------------------------^ // // momsurffix\utils.sp(211) : error 029: invalid expression, assumed zero // 211 | ASSERT_FMT(entry.addr != Address_Null, "Failed to allocate memory (size: %i)!", size); // -----------------------------------------------------------------------------------------------------^ // // momsurffix2.sp(74) : error 430: invalid macro definition // 74 | #define PROF_START%1; // -----------------^ // // momsurffix2.sp(75) : error 430: invalid macro definition // 75 | #define PROF_STOP%1; // -----------------^

Smesh292 avatar Mar 04 '25 10:03 Smesh292

It is known that the code doesn't compile on latest sp compilers, so in the meantime use latest sp 1.11 to compile. And I'm not sure I plan on upgrading the code to latest compiler versions, we'll see.

GAMMACASE avatar Mar 04 '25 12:03 GAMMACASE