SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/11/2018, 09:50 PM   #1
ChrisPa
Little Clucker
 
Join Date: Apr 2018
Posts: 4
Reputation: 0
Default Help FCNPC

this code not work, i use the most recent version of the plugin (.dll and .inc)
Code:
#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
Code:
[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
Code:
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
ChrisPa is offline   Reply With Quote
Old 13/11/2018, 12:48 AM   #2
ChrisPa
Little Clucker
 
Join Date: Apr 2018
Posts: 4
Reputation: 0
Default Re: Help FCNPC

up up
ChrisPa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] FCNPC ThiagoMikael Português/Portuguese 4 10/08/2017 06:50 PM
[Ajuda] FCNPC LDezzotti Português/Portuguese 2 01/06/2016 07:07 AM
fcnpc bot Prolific Scripting Help 4 28/11/2015 07:00 PM
Help with FCNPC shulk Scripting Help 4 08/03/2014 09:34 AM


All times are GMT. The time now is 08:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.