View Single Post
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-21-2020 , 05:37   Re: [TUT] Creating AMXX modules (The easiest way)
Reply With Quote #8

For Visual Studio 2019 there are few change and additional step you need to go though
If the image is too hard to see, click on it.
----------------------------------------------------------------------------------------------------------------------------
Quote:
Initializing - creating the module
1. Open the "New project" dialog, and create a Win32 C++ project. Make sure you choosed the project to be empty.
Click to show
1. At "New project dialog", at the "Language" column choose "C++" and create an Empty Project

Spoiler


----------------------------------------------------------------------------------------------------------------------------
Quote:
3. We're almost set. Now create a folder named "sdk" (Recommended) and put the [below-mentioned] files into it.
1. Go to project folder (Right click on Project > Open Folder in File Explorer) and create a folder with the same name as your project name.
Spoiler

2. Go inside the folder you just create and make another folder name "sdk" there.
3. get 3 following files: "amxxmodule.cpp", "amxxmodule.h" and "moduleconfig.h" from AMXX SDK and patse it in "sdk" folder. (he didn't mention those files name from the original post)
4. Back to Visual Studio, Create new "filter/folder" name "sdk" (Right click on Project > Add > New Filter)
5. Add all 3 files that you pasted in the "sdk" folder at step 3 into the "sdk" folder inside Visual Studio (Right click on Project > Add > Add Existing Item... > (Browse those file) > Add)

----------------------------------------------------------------------------------------------------------------------------
Bonus++
If somehow you get some error like "cannot open source file "IGameConfigs.h", do this following step:
1. Open project property (Right click on project > Properties) and go to VC++ Directories, Include Directories then <Edit>.
2. Get AMXX master folder's directory (amxmodx-master\public\)
3. Go back to Visual Studio, Click on "New Line" (or Ctr+Insert) then paste the directory at step 2 there
Spoiler

4. Click OK then it would be finish
__________________
My plugin:

Last edited by Celena Luna; 10-21-2020 at 05:37.
Celena Luna is offline