Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / need help with comparing values

Years of Service
User Offline
Joined: 28th Sep 2012
Posted: 14th Oct 2012 02:00
In the following code I have declared a char variable. The contents have been verified to contain what I want, but everytime I compare with an if staement, it returns false. I need a lesson please


Making a simple 3D walk through of a real place. Using DarkGDK, 2008 C++, 3DWS, Sparky's Collision
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 14th Oct 2012 14:58
You need to use strcmp() instead to compare strings in C which will return true or false.

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!

Login to post a reply

Server time is: 2023-06-05 17:52:04
Your offset time is: 2023-06-05 17:52:04