Joκκєrino Posted November 5, 2011 Posted November 5, 2011 Can you tell me why i take this error ? Quote
0 Joκκєrino Posted November 14, 2011 Author Posted November 14, 2011 Now when i try write activeChar. and then press " CTRL + SPACE " I GET THIS : activeChar cannot be resolved to a type . Anyone can help me ? Quote
0 adenaman Posted November 14, 2011 Posted November 14, 2011 I dont think that there is a type activeChar activeChar is used to be L2PcInstance or L2Character but you should check any java guide about types and variables Quote
0 mogo Posted November 14, 2011 Posted November 14, 2011 FYI activeChar can be anything as well as nothing Quote
0 dpbBryan Posted November 14, 2011 Posted November 14, 2011 301,000 results on Google. I lol'd so hard. I wish there was like, a minimum knowledge required requirement. Quote
0 Tryskell Posted November 15, 2011 Posted November 15, 2011 I lol'd so hard. I wish there was like, a minimum knowledge required requirement. That's nothing about knowledge, but common sense. "cannot be resolved to a type", 41 400 000 results. "cannot be resolved to a type java", 9 200 000 results. "cannot be resolved to a type java error", 65 600 000 results. "cannot be resolved to a type java eclipse", 7 690 000 results. "why am i dumb", 220 000 000 results. Quote
0 Joκκєrino Posted November 15, 2011 Author Posted November 15, 2011 That's nothing about knowledge, but common sense. "cannot be resolved to a type", 41 400 000 results. "cannot be resolved to a type java", 9 200 000 results. "cannot be resolved to a type java error", 65 600 000 results. "cannot be resolved to a type java eclipse", 7 690 000 results. "why am i dumb", 220 000 000 results. There isn't any tutorial about l2j . /:) I want add some libraries but i can't find them . Quote
0 dpbBryan Posted November 15, 2011 Posted November 15, 2011 There isn't any tutorial about l2j . /:) I want add some libraries but i can't find them . Your error isn't l2j specific. http://java.syntaxerrors.info/index.php?title=Foo_cannot_be_resolved_to_a_type Quote
0 Joκκєrino Posted November 15, 2011 Author Posted November 15, 2011 I know , but nothing works for me . Anyone ? Quote
0 Tryskell Posted November 15, 2011 Posted November 15, 2011 I know , but nothing works for me . Anyone ? Any code ? Don't expect to get correct answers if we can only guess your problem. Quote
0 Joκκєrino Posted November 15, 2011 Author Posted November 15, 2011 There is only a problem and already i told you . 2 months ago when I tryied to wrote in eclipse activeChar , and when i pressed ctrl + space I get a list with what to complete , something like "activeChar.setHero (1)" . Now , when i write activeChar and i press ctrl + space i take error with red in left part "activeChar cannot be resolved to a type". Why? I need some help . This is the problem , Tryskell . Sorry for my english , but u will understand . Quote
0 extr3me Posted November 15, 2011 Posted November 15, 2011 i think your source , is not on build patch :| try to import again lib's maybe it works Quote
0 Tryskell Posted November 15, 2011 Posted November 15, 2011 First, I don't remember 2 months errors of all people. Sorry to don't be a bot. Second, you didn't answer to my previous question (post a CODE). So I will answer approximatively, and won't care about that topic anymore. activeChar has to be a L2PcInstance, that state is often inheritated from method. public void blabla(L2PcInstance activeChar) { activeChar.anyAction(); } in that case that will work. public void blabla(L2PcInstance player) { activeChar.anyAction(); } change one or other name (player => activeChar OR activeChar => player). Try ctrl+shift+o to correct imports. L2PcInstance dog is a L2PcInstance. Don't think "activeChar" is always a player. It totally depends of the environnement (and that's why I needed a freakin code). You can find player, activeChar, plyr, etc etc. Anyway gl with your problem and don't PM me anew for another answer. Quote
0 Joκκєrino Posted November 16, 2011 Author Posted November 16, 2011 Thx , now it works . Request close . Quote
Question
Joκκєrino
Can you tell me why i take this error ?
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.