I wanted to take a look at FakeNPC functionality, but I have a problem with most basic function, which creates the npc.
There's a part of my code:
Code:
new team = GetClientTeam(client);
new Float:npcpos[3];
GetClientAbsOrigin(client,npcpos);
npcpos[2]+=150.0;
new npc = War3_CreateFakeNPC(100,team,npcpos,"tmp_name_npc","Idle","models/player/ct_urban.mdl",true); // There are some errors
new Float:npcpos[3];
GetClientAbsOrigin(client,npcpos);
npcpos[2]+=150.0;
new npc = War3_CreateFakeNPC(100,team,npcpos,"tmp_name_npc","Idle","models/player/ct_urban.mdl",true); // There are some errors
It compiles, but i have some errors in game in commented line:
Code:
L 06/08/2012 - 10:20:19: [war3source\WCX_Engine_FakeNPC.smx] Blocking CreateNPC because there are already 0/16 active Fake NPCs!
L 06/08/2012 - 10:20:19: [SM] Plugin encountered error 1: Unrecognizable file format
L 06/08/2012 - 10:20:19: [SM] Native "War3_CreateFakeNPC" reported: Could not create a NPC!
Error line #3 means that my new npc gets index <= 0, but I don't know why.L 06/08/2012 - 10:20:19: [SM] Plugin encountered error 1: Unrecognizable file format
L 06/08/2012 - 10:20:19: [SM] Native "War3_CreateFakeNPC" reported: Could not create a NPC!
Am I using smth the wrong way or need to use some command first?






Logged
