Jump to content
Sign in to follow this  
Guest

Why won't this if statement work? D:

Recommended Posts

Guest

if(heroinAmount >= 15) then{

hint "You can't carry any more heroin.";

}

Help, please?

Share this post


Link to post
Share on other sites

Where do you execute that piece of code? How is the variable heroinAmount initialised? Does it have a value when you execute this code?

Share this post


Link to post
Share on other sites
Guest
Where do you execute that piece of code? How is the variable heroinAmount initialised? Does it have a value when you execute this code?

It' alright, i fixed it.

Thanks anyways :)

Share this post


Link to post
Share on other sites
How'd you fix it?

Exactly :P Google can't be our friend if no one posts their answers.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×