Thread Tools Display Modes
Unread 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..
rudemaster is offline  
Unread 07-02-12, 09:27 PM   #2
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 566
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
Ketho is offline  
Unread 07-03-12, 02:24 AM   #3
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,405
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.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, 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!
Phanx is offline  
 

Go BackWoWInterface » WoD Beta » MoP 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