#define and #include
#4

#include includes another script in your gamemode

Example

main.inc
pawn Код:
main()
{
    print("Main");
}
Gamemode.pwn
pawn Код:
#include <a_samp> //includes a_samp.inc - if it fail it will give you an warning
#tryinclude <main> //try to include main.inc - if it fail nothing will happen

public OnGameModeInit()
{
    AddPlayerClass( 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
}
if you complie your script, it would look something like that in the amx (just converted)

Код:
//samp stuff

main()
{
	print("Main");
}

public OnGameModeInit()
{
	AddPlayerClass( 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
}
How to fix your problem ?
Easy, you need to get the file "utils.inc" (serach for it - ****** helps, too)
And then put it in the include folder (?:\...\sa-mp_server_directory\pawno\include\)
Reply


Messages In This Thread
#define and #include - by Bob the Builder - 28.09.2009, 16:55
Re: #define and #include - by Desert - 28.09.2009, 17:00
Re: #define and #include - by Bob the Builder - 28.09.2009, 18:23
Re: #define and #include - by Nero_3D - 28.09.2009, 18:36
Re: #define and #include - by Bob the Builder - 28.09.2009, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)