SA-MP Forums Archive
Help FCNPC - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help FCNPC (/showthread.php?tid=660763)



Help FCNPC - ChrisPa - 12.11.2018

this code not work, i use the most recent version of the plugin (.dll and .inc)
Код:
#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
return
Код:
[15:34:55] [FCNPC] Error: NPC 'FirstNPC' not created. Name 'FirstNPC' is invalid or the maxnpc limit in server.cfg has been reached.
this my server.cfg
Код:
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
note: I do not have more npc in the server, the gm is practically new, it only has a registration system


Re: Help FCNPC - ChrisPa - 12.11.2018

up up