28.09.2009, 18:36
#include includes another script in your gamemode
Example
main.inc
Gamemode.pwn
if you complie your script, it would look something like that in the amx (just converted)
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\)
Example
main.inc
pawn Код:
main()
{
print("Main");
}
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 );
}
Код:
//samp stuff main() { print("Main"); } public OnGameModeInit() { AddPlayerClass( 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 ); }
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\)