SA-MP Forums Archive
Why I get Error's when i Add 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: Why I get Error's when i Add BOT (/showthread.php?tid=106478)



Why I get Error's when i Add BOT - aktv - 03.11.2009

I wanna add Bot in my GameMode, but I get this errors:

C:\DOCUME~1\Andrius\Desktop\Serveris\GAMEMO~1\GRP4 .pwn(226) : error 017: undefined symbol "IsPlayerNPC"
C:\DOCUME~1\Andrius\Desktop\Serveris\GAMEMO~1\GRP4 .pwn(6269) : error 017: undefined symbol "ConnectNPC"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


226 line: if(IsPlayerNPC(playerid))
6269 line: print("NPC botas GameMod'e prijungtas");
ConnectNPC("Martin_M","TaksiVairuotojas");
TaksiMasina = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);


Sorry for my bad English


Re: Why I get Error's when i Add BOT - gemadon - 03.11.2009

Make sure you have the UPDATED pawno, and you are compiling the script with the new pawno.