13.03.2016, 13:20
I hope you have the libraries in the right folder. Since you don't know how to include libraries, I'll tell you briefly how it is done.
To include a library, you use a directive. To be more specific the 'include' directive. It is characterized by a hashtag (#) followed by the name of the directive, in this case being 'include'. It basically tells the precompiler to take the contents of the specified file and literally include it in the compiled file (compiled_file.amx). Then, to include a library located at the following path: "C:\Users\Desktop\PROJECT_NAME\pawno\include", you use the greater than and the less than symbols wrapped around the .inc file you want to include. I am mentioning that specific path as that's where most of your includes will be and should be.
To include a file outside the path above, you use the double quotes. This is also to include other .pwn files for when you get into modular programming. Again, we use the include directive:
To include a library, you use a directive. To be more specific the 'include' directive. It is characterized by a hashtag (#) followed by the name of the directive, in this case being 'include'. It basically tells the precompiler to take the contents of the specified file and literally include it in the compiled file (compiled_file.amx). Then, to include a library located at the following path: "C:\Users\Desktop\PROJECT_NAME\pawno\include", you use the greater than and the less than symbols wrapped around the .inc file you want to include. I am mentioning that specific path as that's where most of your includes will be and should be.
PHP код:
#include <a_samp>
#include <YSI\y_commands>
PHP код:
// This is when the included file is in the same directory as the file in which you include it
#include "a_file_in_the_same_directory.pwn"
// This is when there's a folder called: "modules" with in it the file you want to include
#include "modules\a_file_in_another_directory.pwn"