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


Messages In This Thread
WTF? is this? - by Darekfred - 20.10.2009, 17:28
Re: WTF? is this? - by Mechscape - 20.10.2009, 18:48
Re: WTF? is this? - by r4z0rJebiVjetar - 20.10.2009, 18:49
Re: WTF? is this? - by Darekfred - 20.10.2009, 18:50
Re: WTF? is this? - by [NYRP]Mike. - 20.10.2009, 18:56
Re: WTF? is this? - by Correlli - 20.10.2009, 18:58
Re: WTF? is this? - by Darekfred - 20.10.2009, 19:00
Re: WTF? is this? - by dugi - 20.10.2009, 19:00
Re: WTF? is this? - by Darekfred - 20.10.2009, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)