Eviltyphoon Posted April 5, 2009 Author Share Posted April 5, 2009 Expected Identifier errorLine 1 column 11 on this code:```Sub Skills(Type) Dim a Dim b Select case type Case WC a = 50 b = 10 If Getplayerweaponslot(index) = 5 Then Call BattleMsg(index, "You start to chop at the tree!, BLUE, 1) Do while GetPlayerStr(index) < a a = a - 5 b = b - 1 Loop Call Settimer("Woodcutting " & index, Rand(Int(1 + b), Int(2 + b)) Call Playermsg(index, Rand(Int(1 + b), Int(2 + b)) Call LockPlayer(index, 1) Call LockSpells(index, 1) Call LockItems(index, 1) Call LockAttack(index, 1) Else Call PlayerMsg(index, "You need an axe to cut wood!", RED) End If Exit Sub Case M Exit Sub End SelectEnd Sub```Which is the '('Any ideas?Thx in advance,Ace of Clubs AKA Eviltyphoon Link to comment Share on other sites More sharing options...
Alpha Posted April 5, 2009 Share Posted April 5, 2009 WC as Type?I think to identify something you need to have a X As Type.Or maybe that's source codes.Maybe it's **Dim** X As Type though.-Alpha Link to comment Share on other sites More sharing options...
Eviltyphoon Posted April 5, 2009 Author Share Posted April 5, 2009 Thats source.Xeross tried it on his pc, and it woeked, but it won't work for me, not even with a fresh copy of EE. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 5, 2009 Share Posted April 5, 2009 Found afew problems.First, your first battlemsg:Call BattleMsg(index, "You start to chop at the tree!, BLUE, 1)For forgot to end the string (with a double-quote), could could lead to quite afew problems."Type" is a reserved word; not sure if you're using it as a variable or not, but I don't think it will let you if you try.Also, don't subs need an "index" too? Link to comment Share on other sites More sharing options...
xeross Posted April 5, 2009 Share Posted April 5, 2009 Ye it might be because Type is reserved try skillName instead or something similiar.Regards, Xeross Link to comment Share on other sites More sharing options...
Eviltyphoon Posted April 5, 2009 Author Share Posted April 5, 2009 @Ã…ÃÂüiÑÂôζ:> Found afew problems.> First, your first battlemsg:> Call BattleMsg(index, "You start to chop at the tree!, BLUE, 1)> For forgot to end the string (with a double-quote), could could lead to quite afew problems.I always make these kinds of mistakes :(@Ã…ÃÂüiÑÂôζ:> Also, don't subs need an "index" too?Yeah, but I posted the wrong one;.. :/@Ã…ÃÂüiÑÂôζ:> "Type" is a reserved word; not sure if you're using it as a variable or not, but I don't think it will let you if you try.@Xeross:> Ye it might be because Type is reserved try skillName instead or something similiar.> > Regards, XerossIt works! Thx! Link to comment Share on other sites More sharing options...
xeross Posted April 6, 2009 Share Posted April 6, 2009 Glad I could help ;)Regards, Xeross Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now