HELP PLEASE! "_"
#2

Код:
if(VariableOne == VariableTwo)
checks if the VariableOne equals VariableTwo.
Notice that this isn't good:
Код:
if(VariableOne = VariableTwo)
Код:
VariableOne = VariableTwo;
changes VariableOne's value to VariableTwo's value.

Why checking if it equals null(==0)? Check how strcmp works.

"if (strcmp(cmdtext, "/msgall", true))" I guess you think
Код:
if (!strcmp(cmdtext, "/msgall", true))
If so, it's the alternative way of doing the first tihing.
Reply


Messages In This Thread
HELP PLEASE! "_" - by bodey3333 - 22.07.2012, 16:10
Re: HELP PLEASE! "_" - by Roko_foko - 22.07.2012, 16:33
Re: HELP PLEASE! "_" - by [KHK]Khalid - 22.07.2012, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)