WTF? is this?
#1

That thing is too weird for me, i did everything what the tutorial said.
But still i don tunderstand that tutorial...
Код:
#include <a_npc>

public OnFilterScriptInit()
{
  print("Kana");
  ConnectNPC("[FSRG]Jack","Kana");
  return 1;
}

public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "[FSRG]Jack", true)) //Checking if the NPC's name is MyFirstNPC

    return 1;
  }
  //Other stuff for normal players goes here!
  return 1;
}
Код:
C:\Documents and Settings\Dell\Desktop\freedomdrift 3.0\filterscripts\Guard.pwn(3) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
C:\Documents and Settings\Dell\Desktop\freedomdrift 3.0\filterscripts\Guard.pwn(6) : error 017: undefined symbol "ConnectNPC"
C:\Documents and Settings\Dell\Desktop\freedomdrift 3.0\filterscripts\Guard.pwn(10) : warning 235: public function lacks forward declaration (symbol "OnPlayerSpawn")
C:\Documents and Settings\Dell\Desktop\freedomdrift 3.0\filterscripts\Guard.pwn(12) : error 017: undefined symbol "IsPlayerNPC"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

forward ....(); and do not bump or anyone will not read, when noob is bumping more much's.
Reply
#3

Hh re-compile with new pawn includes .. 0.3a server pack for windows
Reply
#4

i use it
Reply
#5

Download the 0.3 Server and overright all the files in pawno\includes\ to fix this
Reply
#6

You have only included a_npc.inc, not a_samp.inc file.
Reply
#7

ohh.. ok, ty
Reply
#8

a_npc can be used only in NPC modes and not scriptfiles or gamemodes.
Reply
#9

Thanks guys, i got everything working now. Bye!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)