An error and a question
#5
(05-01-2013, 04:54 AM)STR_Warrior Wrote: i think you should change " if (HasKilled) then" to "if HasKilled == true then"

Definitely NOT. Do NOT compare boolean values, that's bad practice in C++ and makes the code less readable.

I think the problem is that you're using two variable names: You have HasSpawned and set HasSpawned to true, but then test HasKilled, which, in this piece of code, is undeclared.
Reply
Thanks given by:


Messages In This Thread
An error and a question - by tonibm19 - 05-01-2013, 04:29 AM
RE: An error and a question - by NiLSPACE - 05-01-2013, 04:54 AM
RE: An error and a question - by xoft - 05-01-2013, 06:02 AM
RE: An error and a question - by NiLSPACE - 05-01-2013, 06:04 AM
RE: An error and a question - by tonibm19 - 05-01-2013, 04:23 PM
RE: An error and a question - by xoft - 05-01-2013, 06:06 AM



Users browsing this thread: 1 Guest(s)