ramirezdu06 0 Posted September 22, 2019 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. Share this post Link to post Share on other sites
Dedmen 2716 Posted September 26, 2019 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
killzone_kid 1332 Posted October 12, 2019 You lie! https://ideone.com/ar4xyn But yeah, this is not how you compare strings Share this post Link to post Share on other sites
Dedmen 2716 Posted October 12, 2019 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
killzone_kid 1332 Posted October 12, 2019 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
Dedmen 2716 Posted October 14, 2019 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