01.10.2009, 18:15
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 :
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
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 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