[DiscordArchive] few ? how many u got ? 10 ?
[DiscordArchive] few ? how many u got ? 10 ?
Archived author: Anchy • Posted: 2023-02-08T06:21:05.510000+00:00
Original source
for example when something expects a pointer but you pass it a value
Archived author: Rymercyble • Posted: 2023-02-08T06:23:54.910000+00:00
Original source
well i found "fix" for it
Archived author: Rymercyble • Posted: 2023-02-08T06:24:11.247000+00:00
Original source
i still dont understand what is cause of this at all though
Archived author: Anchy • Posted: 2023-02-08T06:29:52.570000+00:00
Original source
actually it works for me
Archived author: Anchy • Posted: 2023-02-08T06:30:23.667000+00:00
Original source
i forgot to initialize the class for mine so it was pointing to random memory lol
Archived author: Anchy • Posted: 2023-02-08T06:30:39.672000+00:00
Original source
but i fixed it and it runs fine, besides the missing tables and shit
Archived author: Rymercyble • Posted: 2023-02-08T06:30:55.726000+00:00
Original source
can u show ?
ystem_clock::now();
econds>(currentTime.time_since_epoch()).count();Archived author: Anchy • Posted: 2023-02-08T06:31:06.042000+00:00
Original source
```cpp
class EncounterLogAllMapScript : AllMapScript
{
private:
EncounterLogManager* m_EncounterLogManager;
public:
EncounterLogAllMapScript() : AllMapScript("EncounterLogAllMapScript")
{
m_EncounterLogManager = new EncounterLogManager();
}
void OnPlayerEnterAll(Map* map, Player* player) override
{
if (!map->IsDungeon() && !map->IsRaid())
{
return;
}
auto currentTime = std::chrono:
ystem_clock::now();
auto timestamp = std::chrono::duration_cast<std::chrono:
econds>(currentTime.time_since_epoch()).count();
if (!m_EncounterLogManager)
{
return;
}
LOG_INFO("module", "{} {}", player->GetMapId(), player->GetInstanceId());
m_EncounterLogManager->Log(player->GetMapId(), player->GetInstanceId(), timestamp);
}
};```
Archived author: Anchy • Posted: 2023-02-08T06:31:30.614000+00:00
Original source
I see you initialize yours differently
Archived author: Rymercyble • Posted: 2023-02-08T06:31:35.032000+00:00
Original source
technically thats wrong