Thread Tools Display Modes
07-02-12, 08:40 PM   #1
rudemaster
A Kobold Labourer
Join Date: Sep 2007
Posts: 1
Misspelled function in the API?

Am trying to Hotfix some of the simpler addons and have run into this error multiple times.

Message: ..\AddOns\_NPCScan\_NPCScan.lua line 231:
Usage: GetAchievementCrieriaInfo(achievementID, criteriaIndex)
......................................^ T missing
Notice the Misspelling? is that in the API? I get the error to change Go away if I change it to the misspelled version..
 
07-02-12, 09:27 PM   #2
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
I'm not sure what arguments _NPCScan is passing to it, but GetAchievementCriteriaInfo() will return the same mispelled error on Live, if that means anything
 
07-03-12, 02:24 AM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
It's a typo in the usage error text, not the function name. Also, the error is probably occurring because the GetAchievementCriteriaInfo function has been split into two functions that take different arguments. See:
http://www.wowpedia.org/Patch_5.0.1/...eaking_changes

Speaking of typos, however, whoever named the NUM_LE_LFG_CATEGORYS constant (which doesn't seem to be defined anywhere) needs to learn how to spell.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
 
 

WoWInterface » Site Forums » Archived Beta Forums » MoP Beta archived threads » Misspelled function in the API?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off