Setting up SAMPGDK in C++
#2

  1. If your using visual studio, when you open your project press ALT + F7.
  2. You will see a dialog with a list.
  3. In the list click on c/c++ to drop down a menu.
  4. Click on general.
  5. On the right hand side you should see Additional Include Directories.
  6. Click that and a drop box will appear, click on edit
  7. A new dialog will appear.
  8. Now on the new dialog add a path and navigate to .../sampgdk3.0.2/includes/ (click includes thats the path you need)
  9. Apply the new settings.
Now include the libraries, and use it.

Код:
#include <sampgdk/a_samp.h>
#include <sampgdk/a_players.h>
This will add sampgdk to your project. There will be a way to add the include path globally for all projects but i cant remember how.
Reply


Messages In This Thread
Setting up SAMPGDK in C++ - by Drebin - 18.07.2012, 15:11
Re: Setting up SAMPGDK in C++ - by iggy1 - 18.07.2012, 17:18
Re: Setting up SAMPGDK in C++ - by Lorenc_ - 21.07.2012, 12:19
Re: Setting up SAMPGDK in C++ - by Lorenc_ - 17.08.2012, 09:29
Re: Setting up SAMPGDK in C++ - by iggy1 - 17.08.2012, 17:01
Re: Setting up SAMPGDK in C++ - by Lorenc_ - 17.08.2012, 23:15

Forum Jump:


Users browsing this thread: 1 Guest(s)