Skip to content

FCNPC_OnCreate isn't getting called. (Under OnGameModeInit) #200

@CantBeKarma

Description

@CantBeKarma

For some reason FCNPC_OnCreate isn't getting called at all after creating an NPC. I'm using the latest release as of making this (https://github.com/ziggi/FCNPC/releases/tag/v2.0.0-rc.7) specifically for 0.3.DL. I've also tried using the other 0.3.DL release and FCNPC_OnCreate isn't getting called. This is the test script:

#include <a_samp>
#include <FCNPC> 
#include <ColAndreas>

main()
{
    print("\n----------------------------------");
    print("  Blank Gamemode\n");
    print("----------------------------------\n");
}

public OnGameModeInit()
{
    FCNPC_Create("Test");
    return 1;
}

public FCNPC_OnCreate(npcid)
{
    printf("FCNPC_OnCreate: %i", npcid);
    return 1;
}

The results (server-log):


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.DL-R1, (C)2005-2018 SA-MP Team

[22:28:18] filterscripts = ""  (string)
[22:28:18] 
[22:28:18] Server Plugins
[22:28:18] --------------
[22:28:18]  Loading plugin: ColAndreas
[22:28:18] *********************
[22:28:18] ** Created By:     **
[22:28:18] ** [uL]Chris42O    **
[22:28:18] ** [uL]Slice       **
[22:28:18] ** [uL]Pottus      **
[22:28:18] *********************
[22:28:20] Loaded collision data.
[22:28:20] *********************
[22:28:20]   ColAndreas Loaded
[22:28:20]    v1.4.0
[22:28:20] *********************
[22:28:20]   Loaded.
[22:28:20]  Loading plugin: FCNPC-DL
[22:28:20] 
[22:28:20] -------------------------------------------------
[22:28:20]      FCNPC - Fully Controllable NPC v2.0.0
[22:28:20]             Windows SA-MP 0.3.DL R1
[22:28:20]            Jan  2 2019 at 23:09:26
[22:28:20] 
[22:28:20]   Author:       OrMisicL (2013 - 2015)
[22:28:20]   Continued by: ziggi    (2016 - present)
[22:28:20] 
[22:28:20]   See full credits in the README.md file
[22:28:20] -------------------------------------------------
[22:28:20] 
[22:28:20] Loading...
[22:28:20] 
[22:28:20] -------------------------------------------------
[22:28:20]    ColAndreasv1.4.0
[22:28:20] 
[22:28:20]    Created By:
[22:28:20]      [uL]Chris42O
[22:28:20]      [uL]Slice
[22:28:20]      [uL]Pottus
[22:28:20] -------------------------------------------------
[22:28:20] 
[22:28:20] Loading...
[22:28:20] ColAndreas v1.4.0 Loaded.
[22:28:20]   Loaded.
[22:28:20]  Loaded 2 plugins.

[22:28:20] [artwork:crc] lvpdpc2.dff CRC = 0xFBD1EA7C
[22:28:20] [artwork:crc] lvpdpc2.txd CRC = 0xDC92731E
[22:28:20] [artwork:crc] lapdpd2.dff CRC = 0xA558D422
[22:28:20] [artwork:crc] lapdpd2.txd CRC = 0xA442E2DA
[22:28:20] [artwork:crc] wallzzz.dff CRC = 0x4BC6EDFF
[22:28:20] [artwork:crc] wallzzz.txd CRC = 0x235E3EEB
[22:28:20] 
[22:28:20] Filterscripts
[22:28:20] ---------------
[22:28:20]   Loaded 0 filterscripts.

[22:28:24] Loaded collision data.
[22:28:24] [npc:join] Test has joined the server (999:127.0.0.1)
[22:28:24] 
----------------------------------
[22:28:24]   Blank Gamemode

[22:28:24] ----------------------------------

[22:28:24] Number of vehicle models: 0

It shows the NPC has connected, however it just doesn't call FCNPC_OnCreate, yeah. I've even tried printing within the include, specifically where it's hooking FCNPC_OnCreate and it doesn't print anything at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions