NPC help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: NPC help (
/showthread.php?tid=262859)
NPC help -
krammer - 19.06.2011
ok. so before you start pasting links please know that I have been searching tutorials in sa-mp forums, wiki-samp and everywhere in between. I am trying to learn a bit about NPC's so that I can use them in my server. I am starting off by just figuring out how to connect one to my server in the first place.
I have chosen one lpc mode that came with windows samp server.
I have copied train_lv to the filterscripts folder;
added train_lv in server.cfg;
changed maxnpc to 10;
added
{
ConnectNPC("choochoo","train_lv");
return 1;
}
under Public OnFilterscriptInit;
I'm also using a blank gamemode so that there can not be conflictions between that and the filterscript.
everything compliles fine. no warnings in game. however my server log shows this:
Script[gamemodes/blank.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
and there is no NPC connected.
I have tried to follow all the instructions I could find for connecting a bot. However I have apparently missed something.
Re: NPC help -
iFriSki - 19.06.2011
http://forum.sa-mp.com/showthread.ph...t=npc+tutorial
You sure you looked?
Edit: Actually read your post. You do have
main() {}, right? As in, how blank is this blank gamemode you've created?