Permission Issues with Win 7
#1

This may not effect Windows 7 only, but it's the OS I'm using. When I create an npc using the following code:
pawn Код:
#include <a_npc>
OnNPCSpawn()
{
  SendChat("I spawned");
}
Forcing the NPC to spawn and when it connects, it will not send the chat. Was there something I missed?

My test script.
pawn Код:
#include <a_samp>
OnPlayerCommandText(playerid,cmdtext[])
{
  if(!strcmp(cmdtext[1],"connectnpc",true,10))
  {
    ConnectNPC(cmdtext[12],"npcmode");//NPCMode was the script above
    return 1;
  }
  if(!strcmp(cmdtext[1],"spawn",true,5))
  {
    SpawnPlayer(strval(cmdtext[7]));
    return 1;
  }
}
I get a 'asking permission' window when I run the samp-server.exe, then when I try to connect the NPC I get another to asking to run the npc exe, Could this be causing an interference with the npcmode?
Reply


Messages In This Thread
Permission Issues with Win 7 - by Joe Staff - 08.09.2009, 18:30
Re: Permission Issues with Win 7 - by gabriel1223 - 08.09.2009, 18:37
Re: Permission Issues with Win 7 - by International - 08.09.2009, 18:42
Re: Permission Issues with Win 7 - by Joe Staff - 08.09.2009, 19:05
Re: Permission Issues with Win 7 - by KevKo95 - 08.09.2009, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)