SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 30/05/2019, 11:09 PM   #1
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 210
Reputation: 22
Exclamation A lot of functions not registered (FCNPC)



I downloaded this filterscript and installed everything. I tried it as a filterscript, but it just didn't work... peds weren't spawning. Then I decided to copy the filterscript, and add it to my main server script (I didn't just copy paste, I was trying my best to "blend" it in), and it still compiles normally. But, by using nativechecker, this is what the console says now. I don't know why!

Any help is appreciated, and will be rewarded with reputation.
__________________
My work:


Weapon Shop FS
Click on me!
DomagojSellug is offline   Reply With Quote
Old 30/05/2019, 11:18 PM   #2
MisterTickle
Huge Clucker
 
MisterTickle's Avatar
 
Join Date: Jul 2007
Posts: 364
Reputation: 79
Default Re: A sh*tton of functions not registered (FCNPC)

There is FCNPC and FCNPC 2.0 make sure to compile the filterscript with the right one. I think thats your problem.
__________________
MisterTickle is offline   Reply With Quote
Old 31/05/2019, 08:55 AM   #3
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 210
Reputation: 22
Default Re: A sh*tton of functions not registered (FCNPC)

Quote:
Originally Posted by MisterTickle View Post
There is FCNPC and FCNPC 2.0 make sure to compile the filterscript with the right one. I think thats your problem.
When I compile it with FCNPC 2.0 it gives me tons of errors saying:
Code:
error: undefined symbol 'MOYE_TYPE_WALK'
__________________
My work:


Weapon Shop FS
Click on me!
DomagojSellug is offline   Reply With Quote
Old 31/05/2019, 09:13 AM   #4
MisterTickle
Huge Clucker
 
MisterTickle's Avatar
 
Join Date: Jul 2007
Posts: 364
Reputation: 79
Default Re: A sh*tton of functions not registered (FCNPC)

You should compile with the original if the code you're trying to run is made for that. I have MOVE_TYPE_WALK in my include, but it's 1.0. Not sure if it makes a difference. You can just add this to the top of the include or before you include it.

#define FCNPC_MOVE_TYPE_AUTO (-1)
#define FCNPC_MOVE_TYPE_WALK (0)
#define FCNPC_MOVE_TYPE_RUN (1)
#define FCNPC_MOVE_TYPE_SPRINT (2)
#define FCNPC_MOVE_TYPE_DRIVE (3)

I just realized, Are you including the FCNPC plugin? You need the actual plugin file loaded.
__________________
MisterTickle is offline   Reply With Quote
Old 31/05/2019, 04:19 PM   #5
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 210
Reputation: 22
Default Re: A sh*tton of functions not registered (FCNPC)

Quote:
Originally Posted by MisterTickle View Post
You should compile with the original if the code you're trying to run is made for that. I have MOVE_TYPE_WALK in my include, but it's 1.0. Not sure if it makes a difference. You can just add this to the top of the include or before you include it.

#define FCNPC_MOVE_TYPE_AUTO (-1)
#define FCNPC_MOVE_TYPE_WALK (0)
#define FCNPC_MOVE_TYPE_RUN (1)
#define FCNPC_MOVE_TYPE_SPRINT (2)
#define FCNPC_MOVE_TYPE_DRIVE (3)

I just realized, Are you including the FCNPC plugin? You need the actual plugin file loaded.
I added the plugin but then the server CMD won't launch at all. I will try to add the defines and let you know how it goes.
__________________
My work:


Weapon Shop FS
Click on me!
DomagojSellug is offline   Reply With Quote
Old 31/05/2019, 04:22 PM   #6
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 210
Reputation: 22
Default Re: A sh*tton of functions not registered (FCNPC)

Quote:
Originally Posted by MisterTickle View Post
You should compile with the original if the code you're trying to run is made for that. I have MOVE_TYPE_WALK in my include, but it's 1.0. Not sure if it makes a difference. You can just add this to the top of the include or before you include it.

#define FCNPC_MOVE_TYPE_AUTO (-1)
#define FCNPC_MOVE_TYPE_WALK (0)
#define FCNPC_MOVE_TYPE_RUN (1)
#define FCNPC_MOVE_TYPE_SPRINT (2)
#define FCNPC_MOVE_TYPE_DRIVE (3)

I just realized, Are you including the FCNPC plugin? You need the actual plugin file loaded.
Code:
					case 0: FCNPC_SetKeys(i,KEY_HANDBRAKE+KEY_FIRE);
					case 1: FCNPC_SetKeys(i,KEY_HANDBRAKE+KEY_SECONDARY_ATTACK);
					case 2: FCNPC_SetKeys(i,KEY_HANDBRAKE+KEY_JUMP);
these three lines give me these warnings:
Code:
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(8871) : warning 202: number of arguments does not match definition
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(8871) : warning 202: number of arguments does not match definition
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(8872) : warning 202: number of arguments does not match definition
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(8872) : warning 202: number of arguments does not match definition
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(8873) : warning 202: number of arguments does not match definition
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(8873) : warning 202: number of arguments does not match definition
__________________
My work:


Weapon Shop FS
Click on me!
DomagojSellug is offline   Reply With Quote
Old 31/05/2019, 06:31 PM   #7
MisterTickle
Huge Clucker
 
MisterTickle's Avatar
 
Join Date: Jul 2007
Posts: 364
Reputation: 79
Default Re: A lot of functions not registered (FCNPC)

Compile with 1.0 and upload the 1.0 plugin and load it.
__________________
MisterTickle is offline   Reply With Quote
Old 31/05/2019, 06:45 PM   #8
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 210
Reputation: 22
Default Re: A lot of functions not registered (FCNPC)

Quote:
Originally Posted by MisterTickle View Post
Compile with 1.0 and upload the 1.0 plugin and load it.
Actually, in the end I gave up on the script... I managed to download the plugin and everything, the pedestrians spawn but none of them walk, they are just frozen and do the 'walk' animation. Well, thanks for helping me out tho, I gave you some rep.
__________________
My work:


Weapon Shop FS
Click on me!
DomagojSellug 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
functions not registered Pr0GreSiVe Scripting Help 16 21/01/2018 03:38 PM
Functions not registered? Livar Scripting Help 5 22/09/2017 02:26 PM
Functions not registered JaydenJason Scripting Help 15 27/07/2017 01:04 PM
Functions not registered when they are biker122 Scripting Help 8 30/07/2016 04:16 PM
functions not registered StackedPizza Scripting Help 3 05/07/2016 11:22 AM


All times are GMT. The time now is 11:58 PM.


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