[Ajuda] Problema FNPC versгo SAMP
#1

To tentando criar npcs roubaveis, to tentando sу criar o npc pra testar, fiz assim:
pawn Code:
new npc;

public OnGameModeInit()  {
    npc = FCNPC_Create("[BOT]Teste");
    return 1;
}

public OnPlayerRequestClass(playerid, classid)  {
    if(IsPlayerNPC(playerid))
        return SpawnPlayer(playerid);
   
    return 1;
}

public FCNPC_OnCreate(npcid)  {
    printf("[NPC] id: %i criado!", npcid);
    return 1;
}

public FCNPC_OnSpawn(npcid)  {
    printf("[NPC] id: %i spawn!", npcid);
    return 1;
}
Ta dando erro aqui:
warning 204: symbol is assigned a value that is never used: "npc"
npc = FCNPC_Create("[BOT]Teste");

E o server nгo inicia, baixei o SAMP server agr no site do samp, mas o sv n abre e da esse erro no serverlog
pawn Code:
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[19:11:08] filterscripts = ""  (string)
[19:11:08]
[19:11:08] Server Plugins
[19:11:08] --------------
[19:11:08]  Loading plugin: sscanf.dll
[19:11:08]

[19:11:08]  ===============================

[19:11:08]       sscanf plugin loaded.    

[19:11:08]          Version:  2.8.1        

[19:11:08]    (c) 2012 Alex "******" Cole  

[19:11:08]  ===============================

[19:11:08]   Loaded.
[19:11:08]  Loading plugin: FCNPC.dll
[19:11:08]
[19:11:08] -------------------------------------------------
[19:11:08]      FCNPC - Fully Controllable NPC v0.1 B12
[19:11:08]
[19:11:08] - Author: OrMisicL
[19:11:08] - Build:  Jun  2 2014 at 19:05:32
[19:11:08] -------------------------------------------------
[19:11:08]
[19:11:08] Loading ...
[19:11:08] Unknown samp server version. FCNPC only supports 0.3z versions
[19:11:08]   Failed.
[19:11:08]  Loaded 1 plugins.

[19:11:08]
[19:11:08] Filterscripts
[19:11:08] ---------------
[19:11:08]   Loaded 0 filterscripts.

[19:11:08] Script[gamemodes/new.amx]: Run time error 19: "File or function is not found"
[19:11:08] Number of vehicle models: 0
Reply
#2

Code:
[19:11:08] Unknown samp server version. FCNPC only supports 0.3z versions
Reply
#3

Para usar o FCNPC tens de ter o sa-mp de acordo com a versгo que ele indica no tуpico do FCNPC, pois o mesmo utiliza de metodologias diferentes para acessar a memуria do sa-mp, e os endereзos alteram de versгo pra versгo...

Abraзos.
Reply
#4

Eu entendo pessoal, o problema й que a minha versгo eu acabei de baixa no site, й a versгo Z acho que й igual, o que serб que eu to fazendo? :O
Rebaixei o samp todo, mas continua o problema
Reply
#5

Vocк deve ter baixado o plugin na versгo R1, baixe a versгo do Lorenc_.

[Plugin] FCNPC - Fully Controllable NPC v0.1 Beta 1
Reply
#6

Baixei e continua dando erro quando abre mesmo sem eu usar nada nessa bagaзa, sу botar o puglin, nem da o #include no gm
https://github.com/zeelorenc/fcnpc/releases/tag/0.1-B12
Reply
#7

A versгo SA-MP para a versгo do plugin й essa aqui:

SA-MP 0.3z R4 server update

@edit

Caso queira usar a versгo R2 do SA-MP baixe a versгo do plugin desatualizada...

http://www.solidfiles.com/d/b994992a87/FCNPC.rar
Reply
#8

Quote:
Originally Posted by Seidel
View Post
A versгo SA-MP para a versгo do plugin й essa aqui:

SA-MP 0.3z R4 server update

@edit

Caso queira usar a versгo R2 do SA-MP baixe a versгo do plugin desatualizada...

http://www.solidfiles.com/d/b994992a87/FCNPC.rar
Agora ta dando certo bro obrigadao!!!!
Reply
#9

Agora sу um help como eu faзo pra criar um NPC paradгo no meio do nada, todos os samples q eu achei era tipo missao, outras paradas queria um sу paradao no meio do nada, o resto eu me viro! abraзos
Reply
#10

Usa FCNPC_Create, depois FCNPC_SetPosition e FCNPC_SetAngle...

Acho que й isso, qualquer coisa tem uma lista com todas as funзхes do plugin do tуpico do mesmo.

[Plugin] FCNPC - Fully Controllable NPC v0.1 Beta 1

@edit

Cria o NPC depois usa FCNPC_Spawn;
Reply


Forum Jump:


Users browsing this thread: