Jump to content
ramirezdu06

extension.dll in c++ "if,else" doesn't work

Recommended Posts

i have created an extension.dll in c++ but when i add and "if,else" statement the code doesn't work but only for the extension in arma 3 because i have put the code in an other project and the code work prefecly so it's not my code but i don't know why arma 3 doesn't recognize the "if,else" statement nad i have nothing in .rpt with out extension loaded.

 

Capture.PNG

Share this post


Link to post
Share on other sites

You crossposted this to Arma Discord too. And as every c++ programmer will know, comparing pointers to strings doesn't compare their contents.

Share this post


Link to post
Share on other sites
15 minutes ago, killzone_kid said:

You lie! https://ideone.com/ar4xyn
 

But yeah, this is not how you compare strings

No I don't. You have compiler optimizations on and both strings refer to same pointer. That doesn't at all compare strings. Please don't teach people bullshit.

Share this post


Link to post
Share on other sites

It was a joke if you didn't get it, but also a good example of how it may seem to someone unfamiliar with C++ that it might work. No need to rush with guns blazing.

Share this post


Link to post
Share on other sites
On 10/12/2019 at 7:25 PM, killzone_kid said:

It was a joke if you didn't get it

I saw it being a joke. But I don't see the sense in confusing beginners with jokes that reinforce their wrong assumptions made in the beginning.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×