[DiscordArchive] I only saw those ?
[DiscordArchive] I only saw those ?
Archived author: Revision • Posted: 2023-09-09T19:11:30.705000+00:00
Original source
https://github.com/liyunfan1223/mod-playerbots
Archived author: Trojan • Posted: 2023-09-09T19:20:27.235000+00:00
Original source
```c++
QueryResult result2 = CharacterDatabase.Query("SELECT `spell` FROM `character_spell` WHERE `guid`={};", i);
if (!result2)
continue;
do
{
Spells.push_back(result2->Fetch()[0].Get<uint32>());
} while (result2->NextRow());
}
```
Is this correct? it no result continue? wtf haha
Archived author: Trojan • Posted: 2023-09-09T19:21:14.232000+00:00
Original source
ah got it
Archived author: Revision • Posted: 2023-09-09T19:21:36.742000+00:00
Original source
No because it would try to perform actions on results that doesn't exist
Archived author: Trojan • Posted: 2023-09-09T19:21:52.393000+00:00
Original source
yeah thats what i thought also
Archived author: Trojan • Posted: 2023-09-09T19:22:11.100000+00:00
Original source
so that explains why accountmounts is not working on my client
Archived author: Trojan • Posted: 2023-09-09T19:22:12.040000+00:00
Original source
haha
Archived author: Revision • Posted: 2023-09-09T19:24:36.764000+00:00
Original source
It works if that code block is in another for/while loop since it would simply skip to the next one but if not it wouldn't work.
Archived author: Revision • Posted: 2023-09-09T19:24:54.118000+00:00
Original source
I'm surprised the server isn't crashing for you when you use it if that isn't inside a loop
Archived author: Trojan • Posted: 2023-09-09T19:25:10.873000+00:00
Original source
hmm so it should work as it is in a for loop