20.10.2009, 17:28
That thing is too weird for me, i did everything what the tutorial said.
But still i don tunderstand that tutorial...
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.