Posts: 617
Threads: 129
Joined: Feb 2014
Quote:
Originally Posted by DarkSkull
PHP код:
if(!strcmp(option, "red", true))
This line will always return 1, ie, The strings will never be the same. Because the string option is empty. And You are setting the option inside the if. So that code will never run. I don't know anything about roulette cuz' I haven't played the game at all. So If you could tell me what you are trying to do here, I will help 
|
In the line you specified , i trying to see which option the player has choosen to bet on.. So say the player choose red(/bet red 1000). that line is the option otherwise if the player bet black(/bet black 1000)