NPC help
#1

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.
Reply
#2

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)