Skip to content

Commit 87cf216

Browse files
committed
Update common-errors.mdx
1 parent 089c872 commit 87cf216

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

pages/it-drugs/common-errors.mdx

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: it-drugs - Common Errors
33
description: Common errors and their solutions
44
---
5-
65
import { Callout } from '@components/Callout'
7-
import { Steps } from 'nextra/components'
6+
import { Steps, Cards, Card } from 'nextra/components'
87
import ExternLink from '@components/ExternLink'
8+
import { IconBrandGithub, IconBrandDiscord, IconCode, IconTag } from '@tabler/icons-react';
99

1010
# Common Errors
1111
Here you will find common errors and their solutions. If you have any further questions, please feel free to ask in the [Discord](https://discord.it-scripts.com).
@@ -24,10 +24,34 @@ If you get this error you either don't have [ox_lib](https://github.com/overexte
2424
Make sure to start the ox_lib script before the it-drugs script.
2525

2626
## Database Errors
27+
```ansi
28+
 Error: it-drugs was unable to execute query!
29+
```
30+
If you get this error, it means that the script was unable to execute a query on the database.
31+
This can have multiple reasons, but the most commons are:
32+
- You still running version 1.2.4 of the script. [Update now](https://docs.it-scripts.com/it-drugs/update#v124-to-13x)
33+
- You updated the script from 1.2.4 to 1.3.x and didn't update the database. To fix this you can run the following SQL query:
34+
```sql copy
35+
-- Delete the drug_plants table
36+
DROP TABLE IF EXISTS drug_plants;
37+
-- Delete the drug_processing table
38+
DROP TABLE IF EXISTS drug_processing;
39+
```
40+
41+
---
42+
### Any other databse error
43+
If you get any other database error, please make sure that you are using the latest version of the script.
2744

45+
<Cards>
46+
<Card icon={<IconBrandGithub />} title="GitHub" href="https://github.com/it-scripts/it-drugs" />
47+
<Card icon={<IconTag />} title="Releases" href="https://github.com/it-scripts/it-drugs/releases" />
48+
</Cards>
2849

29-
## Animation Error
50+
If you are using the latest version of the script, please let us know in the [Discord](https://discord.it-scripts.com).
3051

52+
53+
## Animation Error
54+
### Missing Animation
3155
```ansi
3256
 attempt to index a nil value (field 'animation')
3357
```

0 commit comments

Comments
 (0)