Error with NPC bot
#1

hey, i have a stupid problem. My NPC bot doesn't work. Actually there is a error. Here it is:

data/init.txt(45) : error 017: undefined symbol "ConnectNPC"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Please, if you know how to fix it could you tel me ?
Sorry for my bad english. I hope you understand. Thanks
Reply
#2

#include a_npc
Reply
#3

The same problem. Nothing happen..
Reply
#4

Is there any way how can i fix this problem ?
Reply
#5

Show me the whole file path, such as: C:/lalala/Documents/Server/lalala
Reply
#6

You mean my whole server ? Or init.txt file ?
Reply
#7

ConnectNPC("Autikas_A","autikas"); I use this. If this helps you to fix this problem.
Reply
#8

No, just the directory. Is the .txt file a gamemode or an include?
Reply
#9

.txt is an include.
Reply
#10

So where is the problem ?
Reply
#11

Make it yourfilename.inc

It needs to be .inc, not .txt.
Reply
#12

I have one created already. It's call a_npc.inc. And where should i put ConnectNPC("Autikas_A,"autikas"); ?
Reply
#13

I don't understand. Just name the inc you were using 'yourfile.inc You gotta name the end .inc. Use ANSI file renaming so that it enables you to rename any file with any .jpg ect..
Reply
#14

The same problem... Jesus i'm tired of this
Reply
#15

Is there any way how to fix this problem ?
Reply
#16

Quote:
Originally Posted by Setkus
Посмотреть сообщение
Is there any way how to fix this problem ?
How about showing me where are you putting ConnectNPC.

Or try to get the latest includes.
Reply
#17

ConnectNPC i put under OnGameModInit. Is it good ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)