[DiscordArchive] Yes, but there is no function that does that already right?
[DiscordArchive] Yes, but there is no function that does that already right?
Archived author: Honey • Posted: 2021-05-07T16:49:45.964000+00:00
Original source
seems like it makes a query to me. i'm not sure if i could even expose that and if i did, if it would halt the core until there is a return
Archived author: Kitzunu • Posted: 2021-05-07T17:12:15.221000+00:00
Original source
test, you can always have nullptr check so it wont run if there isnt an account
Archived author: Honey • Posted: 2021-05-07T17:18:31.306000+00:00
Original source
I'd make sure that the account exists 100% before calling it. But it seems to return id and username from acore_account.account instead of the names from the acore_characters.characters table
Archived author: Kitzunu • Posted: 2021-05-07T17:21:16.666000+00:00
Original source
> I'd make sure that the account exists 100% before calling it
Literally a null check tho
```cpp
if (account)
{
Now look for the characters on an account
}
```
Archived author: Honey • Posted: 2021-05-07T17:21:46.698000+00:00
Original source
No, i mean Like i checked it in previous code
Archived author: Honey • Posted: 2021-05-07T17:25:09.271000+00:00
Original source
I probably better track the accounts and their characters in a Lua table instead of trying to get Data from the db
Archived author: Kitzunu • Posted: 2021-05-07T17:26:10.712000+00:00
Original source
I dont know what exactly you want to do... but as it already does this for that command I dont understand why not. But maybe cuz I am noob in cpp :d
Archived author: Honey • Posted: 2021-05-07T17:27:57.885000+00:00
Original source
Haha, as If
Archived author: Honey • Posted: 2021-05-07T17:28:06.552000+00:00
Original source
Thanks for your help, appreciate it