In the code above, I've bolded each and every bracket. Note the extra bracket, placed after your else if's method use(JS is an object-oriented language in this case, this references the term 'method' which is a function of an object, in this case being 'Player'). }else if(itemId=280) // I indented this bracket for easier reading I'll be highlighting your singular error here in the comments of that code function useItem(x,y,z,itemId,blockId,side) So for example, here is your current code. All brackets must match, this is the rule I commonly follow when I'm not using an IDE(integrated development environment) to script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |