ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Get Collectible ID From Link (https://www.esoui.com/forums/showthread.php?t=7281)

static_recharge 08/09/17 03:47 PM

Get Collectible ID From Link
 
1 Attachment(s)
So I'm trying to use this function in my add-on:

Code:

GetCollectibleIdFromLink(link)
And it just throws an error no matter what link I put in there:

Attachment 935

Am I just using this function wrong or is it really broken?

Ayantir 08/09/17 03:48 PM

When an argument is a string, it must be between quotes.

Rhyono 08/09/17 04:07 PM

Ayantir already explained the issue, as for the why: The links you see in game are just visually tweaked strings. They don't inherently have quotes around them.

If you place the achievement into your Say (but don't send it), then copy it and paste it into notepad, you'll realize the issue.

static_recharge 08/09/17 08:10 PM

Thanks a bunch!


All times are GMT -6. The time now is 08:28 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI