Quantcast Misspelled function in the API? - WoWInterface
Thread Tools Display Modes
07-02-12, 08:40 PM   #1
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
A Molten Giant
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 846
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's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,616
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:

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.
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!

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