[DiscordArchive] For what, single line if?
[DiscordArchive] For what, single line if?
Archived author: Bench • Posted: 2023-11-25T04:39:53.433000+00:00
Original source
I mean I guess that's fair but like
Archived author: Anchy • Posted: 2023-11-25T04:41:28.259000+00:00
Original source
i always use curly braces
Archived author: Bench • Posted: 2023-11-25T04:42:14.361000+00:00
Original source
Your face is a curly brace
Archived author: Rymercyble • Posted: 2023-11-25T04:48:36.534000+00:00
Original source
surrender and come to dark side
Archived author: Rymercyble • Posted: 2023-11-25T05:01:45.727000+00:00
Original source
pussywizard saved me
Archived author: Rymercyble • Posted: 2023-11-25T05:01:57.606000+00:00
Original source
```cpp
// pussywizard: spells learnt from talents are added as TEMPORARY, so not saved to db (only the talent itself is saved)
```
Archived author: Rymercyble • Posted: 2023-11-25T06:48:29.942000+00:00
Original source
i needed to drop world and i noticed that actually its 7 months since last squash im kind of surprised that they are not more often
Archived author: Rymercyble • Posted: 2023-11-25T07:35:51.138000+00:00
Original source
can any1 explain to me why this works
```cpp
QueryResult talents = CharacterDatabase.Query("SELECT * FROM talents");
```
and this doesnt ?
```cpp
PrepareStatement(CHAR_SEL_TALENTS, "SELECT * FROM talents", CONNECTION_ASYNC);
CharacterDatabasePreparedStatement *statement = CharacterDatabase.GetPreparedStatement(CHAR_SEL_TALENTS);
PreparedQueryResult talents = CharacterDatabase.Query(statement);
```
Archived author: Rymercyble • Posted: 2023-11-25T07:37:59.405000+00:00
Original source
there is not any clear error it just fails on assertion in MySQLConnection::_Query
Archived author: Rymercyble • Posted: 2023-11-25T08:09:49.510000+00:00
Original source
so this `GetPreparedStatement(index);` returns null but i dont understand why