[DiscordArchive] ```If Player:HasQuest(questid)```
[DiscordArchive] ```If Player:HasQuest(questid)```
Archived author: Bogir • Posted: 2022-04-11T11:08:52.887000+00:00
Original source
```If Player:HasQuest(questid)```
Which player must be checked here? How the server must understand it?
Archived author: Bogir • Posted: 2022-04-11T11:09:30.421000+00:00
Original source
Maybe you wanted `if (player->HasQuest(quest_id)) { }` ?
Archived author: Bogir • Posted: 2022-04-11T11:10:13.254000+00:00
Original source
Player* player = <who is this player?> ;
Archived author: Honey • Posted: 2022-04-11T11:55:12.681000+00:00
Original source
In lua the Syntax is `object:HasQuest()`
But i agree it would be way more easy to See more context. Some of these bugs are impossible so solve without seeing the whole script, because the actual mistake is several lines before.
Archived author: Shard • Posted: 2022-04-11T12:39:10.562000+00:00
Original source
<@114208819449561094>
I'm doing something like this :
```lua
local questId = 199999;
if (player:HasQuest(questId) and not player:GetQuestRewardStatus(questId)) then ... end
```