12.11.2018, 20:50
this code not work, i use the most recent version of the plugin (.dll and .inc)
return
this my server.cfg
note: I do not have more npc in the server, the gm is practically new, it only has a registration system
Код:
#define FILTERSCRIPT #include <a_samp> #include <FCNPC> new myFirstNPC = INVALID_PLAYER_ID; #if defined FILTERSCRIPT public OnFilterScriptInit() { myFirstNPC = FCNPC_Create("FirstNPC"); FCNPC_Spawn(myFirstNPC, 0, 0.0, 0.0, 3.1); return 1; } public OnFilterScriptExit() { FCNPC_Destroy(myFirstNPC); myFirstNPC = INVALID_PLAYER_ID; return 1; } #endif
Код:
[15:34:55] [FCNPC] Error: NPC 'FirstNPC' not created. Name 'FirstNPC' is invalid or the maxnpc limit in server.cfg has been reached.
Код:
echo Executing Server Config... lanmode 0 rcon_password 12345 maxplayers 20 maxnpc 10 port 7777 hostname SA-MP 0.3 Server gamemode0 gm 1 filterscripts gl_realtime ls_elevator plugins crashdetect FCNPC mysql sscanf streamer announce 0 chatlogging 0 weburl www.sa-mp.com onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 0 logtimeformat [%H:%M:%S] language English