You TROLL YOU DIE

true!

true [COLOR=‘Black’]will saying this get ME banned instead?

false, that “lawlepop” sounds quite suspicious.

error C2143: syntax error : missing ‘)’ before ‘!’

error C2664: ‘FunctionLawlEPop’ : cannot convert parameter 1 from ‘bool’ to ‘FunFunc’
There are no conversions from integral values to pointer-to-member values

error C2664: ‘FunctionLawlEPop’ : cannot convert parameter 1 from ‘bool’ to ‘FunFunc’
There are no conversions from integral values to pointer-to-member values

Just use a cast over it FunctionLawlEPop((FunFunc)ya_mum);

error C2440: ‘type cast’ : cannot convert from ‘ya_mum’ to ‘FunFunc’
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

Okay I’m not familiar with all the different Source functions, but was the ya_mum bit a your mum joke or what?

Close visual studio.

penis

LOL! Everyone that tried and failed were banned! haha! GOOD JORB James!

Oh Jamie, you and your banhammer :rolleyes:

This MUST work :smiley:

try {bool amIbanned = FunctionLawlEPop(NULL);} catch(…) {}

Build with /EHa switch.

EDIT: I’m sorry, I’ve drunk too much wine last night. Of course the correct answer is (assuming FuncFunc is a function object and we have no clue what its constructor might be):

((FunFunc)(new int[32]))

EDIT2: Never mind, the first one was correct. This is actually the first time I see pointers to methods in action. This of course raise a question - why anybody would want to use that???

But how can you be sure that the language the method’s written in supports a try {} catch {} structure…?

Because ‘error C2440’ is a VS C++ error.

Founded in 2004, Leakfree.org became one of the first online communities dedicated to Valve’s Source engine development. It is more famously known for the formation of Black Mesa: Source under the 'Leakfree Modification Team' handle in September 2004.