[DiscordArchive] Do you see what that code is doing ?
[DiscordArchive] Do you see what that code is doing ?
Archived author: LaHonder • Posted: 2023-04-30T19:09:26.646000+00:00
Original source
// Called when a player logs in.
virtual void OnLogin(Player* /*player*/, bool /*firstLogin*/) { }
Archived author: jackpoz • Posted: 2023-04-30T19:10:32.564000+00:00
Original source
Isn't firstLogin exactly what you need ?
Archived author: LaHonder • Posted: 2023-04-30T19:10:52.526000+00:00
Original source
then it should this
```cpp
void OnLogin(Player* player, bool firstLogin) override
{
if (firstLogin)
player->SetInGuild(1),
player->SetRank(0);
}
```
Archived author: jackpoz • Posted: 2023-04-30T19:11:26.348000+00:00
Original source
Almost, that is not correct C++ code
Archived author: LaHonder • Posted: 2023-04-30T19:11:43.776000+00:00
Original source
okay, what i do miss here
Archived author: jackpoz • Posted: 2023-04-30T19:11:52.552000+00:00
Original source
You don't really write commas between statements
Archived author: LaHonder • Posted: 2023-04-30T19:12:05.018000+00:00
Original source
ahhh understand
Archived author: jackpoz • Posted: 2023-04-30T19:12:20.144000+00:00
Original source
Do you usually code in another language than C++ ?
Archived author: LaHonder • Posted: 2023-04-30T19:12:58.833000+00:00
Original source
no and will not and will not having someone who writes (Learn c++) ... learning by doing
Archived author: LaHonder • Posted: 2023-04-30T19:13:31.499000+00:00
Original source
can read and uderstand code that is enougth i need to know other comes with time