SA-MP Forums Archive
NPC callbacks not being called within npcmode - 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)
+--- Thread: NPC callbacks not being called within npcmode (/showthread.php?tid=635725)



[solved] NPC callbacks not being called within npcmode - jbankss - 12.06.2017

Hi. None of the callbacks in my npcmode are being called

PHP код:
ConnectNPC("testbot""test"); 
PHP код:
 // In /npcmodes/test.pwn (.amx)
public OnNPCSpawn() // <--- isnt called (same goes for all of the callbacks I add)
{
    
SendCommand("/test");
    
SendChat("OnNPCSpawn");  

Does anyone have any clues as to why it doesnt work?


Edit: just commented out OnPlayerSpawn and some other callbacks and it works. I'll surely figure out whats going on, thanks.