show me the code with the case befor and after it
|
|
Code:Errors .\net\com\shops\Shopbuyconfig.java:32: orphaned case case 197: //bandit ^ .\net\com\shops\Shopbuyconfig.java:89: class, interface, or enum expected }next go to → ^ .\net\com\io\PacketManager.java:18: cannot access net.com.shops.Shopbuyconfig bad class file: .\net\com\shops\Shopbuyconfig.java file does not contain class net.com.shops.Shopbuyconfig Please remove or make sure it appears in the correct subdirectory of the classpa th. import net.com.shops.Shopbuyconfig; ^
show me the code with the case befor and after it
Code:if (p == null || p.stream == null) { return; } PlayerItems pi = new PlayerItems(); NPCOption1 N1 = new NPCOption1(); case 197: //bandit p.viewings = 1; p.shopid = 2; p.frames.showInterface(p, 278); p.frames.setItems(p, 278, 89, 94, p.shop2, p.shop2n); p.frames.setString(p, " <col=ffffff><img=1>God Range Armor Shop<img=0>", 278, 88); break; case 198: //fancy p.viewings = 1; p.shopid = 4; p.frames.showInterface(p, 278); p.frames.setItems(p, 278, 89, 94, p.shop4, p.shop4n); p.frames.setString(p, " Fancy shop", 278, 88); break;
in order to use the case you would need something like
you need the switch not an if statementCode:switch(/*ShopID or NpcID*/) { case 197:
thats what i get nowCode:Errors .\net\com\io\PacketManager.java:25: cannot access net.com.shops.Shopbuyconfig bad class file: .\net\com\shops\Shopbuyconfig.java file does not contain class net.com.shops.Shopbuyconfig Please remove or make sure it appears in the correct subdirectory of the classpa th. public Shopbuyconfig shopbuyconfig = new Shopbuyconfig(); ^
fix the import?
how i tried it goes to the right directory
make sure the class you import is public not private and make sure the thing has a package..
like package net.com.shops;
then put an import net.com.shops.*;
it should fix it up.
| « [508] GraveDiggah's Trade = DC [Pali] | small client problem? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |