NPC Problem - 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: NPC Problem (
/showthread.php?tid=125375)
NPC Problem -
buljons - 03.02.2010
Ok i made my first NPC with this tutorial
http://forum.sa-mp.com/index.php?topic=119947.0 it works fine but problems start when i want to add another NPC i don't get it where you need to type
new MySecondNPCVehicle; //Global variable!
Because when i type it before the first public OnGameModeInit() it gives that something doesn't have a function or something
But when i make a second one it says that there already is a definiton.
The best help would be if someone could make a Basic filterscript where to make npcs.
Re: NPC Problem -
Calgon - 03.02.2010
Add it where there's no function, it the compiler returns the error that it's already defined, then it's fine because you've already created that variable.
Re: NPC Problem -
buljons - 03.02.2010
-