How to check if the player wrote something in dialog ?
#6

Invert the sscanf-statement (just add a ! in front). Sscanf returns 0 on match just like strcmp.

I also want to point out that this:
Quote:
PHP код:
if(age >= || age <= 50
Does nothing. Because numbers greater than 7 are 7 -> inifnity and numbers smaller than 50 are -infinity -> 50. And only one of the conditions needs to be fulfilled. You're using an OR where you should be using an AND.

Also in Germanic languages (like English) you don't "have" years. You "are" years.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)