15.12.2014, 21:49
To tentando criar npcs roubaveis, to tentando sу criar o npc pra testar, fiz assim:
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:
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;
}
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