switch a value for stock
Hey,
i wan't to add a switch of the value like this PHP Code:
|
Re: switch a value for stock
Show us exactly what you did because there is nothing wrong with what you have shown
|
Re: switch a value for stock
when i set
Code:
then when i add it in a public type(1) they give me this error Error: Only a single statement (or expression) can follow each "case" |
Re: switch a value for stock
|
Re: switch a value for stock
where is the error i can't found it ! and why did you give me this tutorial i know how to do a switch but can you told me where is my error !
|
Re: switch a value for stock
You obviously don't know since you forgot the { } for each case.
Spoiler
|
Re: switch a value for stock
LOL ! and you too you don't know ! come one man
its one cmd ( return ) It is not necessary for one cmd which is return you seems that you don't even try it ! Please don't throw a words that you don't know it ! |
Re: switch a value for stock
Your code compiles fine for me, show us what you did.
|
Re: switch a value for stock
After actually compiling it, I don't get any error with your snippet (with either snippet). So either provide the exact code you used to produce the error or there is nothing wrong
|
Re: switch a value for stock
Lool sorry guys , its working i've just add it in a wrong place thanks YamiKaitou . ( Sorry ) | Solved !
|
| All times are GMT -4. The time now is 15:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.