#1

Hello,

I have 2 NPC's Fully Working, going round in a continuous Recorded Loop

I have tried to add a 3rd with a little bit of a twist.. I have a major problem

In my Main Game Mode, I do this :

ConnectNPC("THE_NPC", "THE_NPC");

in the folder npcmodes

I have THE_NPC.pwn

Inside that I have this :

Код:
#include <a_npc>

main()
{
  print("LOADED PERFECT!");
}

forward Timer();
	
public OnNPCModeInit()
{
  SetTimer("Timer", 1000, 1);
  print("LOADED PERFECT!");
}

public Timer()
{
	print("DONE!");
}
I tried Printf and i also tried copying the npc include and adding the native SendClientMessageToAll - That didn't work...

I just need to get a working timer going in the NPCMode


The player joins.. but nothing that I do inside this script works... I get no print's in my console... and it obveously isn't working (The Timer), because no prints are appearing in the console there

I tried OnNPCSpawn & OnNPCConnect

Someone please help,

Thanks,


Kaleem
Reply
#2

I know this may sound insulting, but did you compile the bot .pwn? If so, check if the bot process is running, you can do that by pressing ctrl+shift+esc and selecting the processes tab on windows or with 'top' in linux.
Reply
#3

Yes, I compiled it. Don't worry about that.

The NPC spawns fine... but nothing else, No print in the console or nothing.


Kaleem
Reply
#4

Quote:
Originally Posted by [CRP
Kaleem ]
Yes, I compiled it. Don't worry about that.

The NPC spawns fine... but nothing else, No print in the console or nothing.


Kaleem
I have to second this. I do not see the print() and printf() from the npc_file.AMX in the server_log.txt either
Reply
#5

Possible fix here : http://forum.sa-mp.com/index.php?top...6838#msg836838
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)