SA-MP Forums Archive
Error with NPC bot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error with NPC bot (/showthread.php?tid=192718)



Error with NPC bot - Setkus - 23.11.2010

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


Re: Error with NPC bot - WillyP - 23.11.2010

#include a_npc


Re: Error with NPC bot - Setkus - 23.11.2010

The same problem. Nothing happen..


Re: Error with NPC bot - Setkus - 23.11.2010

Is there any way how can i fix this problem ?


Re: Error with NPC bot - WillyP - 23.11.2010

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


Re: Error with NPC bot - Setkus - 23.11.2010

You mean my whole server ? Or init.txt file ?


Re: Error with NPC bot - Setkus - 23.11.2010

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


Re: Error with NPC bot - WillyP - 23.11.2010

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


Re: Error with NPC bot - Setkus - 23.11.2010

.txt is an include.


Re: Error with NPC bot - Setkus - 23.11.2010

So where is the problem ?


Re: Error with NPC bot - WillyP - 23.11.2010

Make it yourfilename.inc

It needs to be .inc, not .txt.


Re: Error with NPC bot - Setkus - 23.11.2010

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


Re: Error with NPC bot - WillyP - 23.11.2010

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..


Re: Error with NPC bot - Setkus - 23.11.2010

The same problem... Jesus i'm tired of this


Re: Error with NPC bot - Setkus - 23.11.2010

Is there any way how to fix this problem ?


Re: Error with NPC bot - Zh3r0 - 23.11.2010

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.


Re: Error with NPC bot - Setkus - 23.11.2010

ConnectNPC i put under OnGameModInit. Is it good ?