[problem]PutPlayerInVehicle
#1

When i use the function PutPlayerInVehicle for a NPC, the NPC doesn't go in and then disconnects from the server a couple seconds later whats going on? (My other NPC's that aren't vehicle NPC's don't disconnect either way)

Код:
#include <a_samp>

new vehicle;

public OnFilterScriptInit()
{
	ConnectNPC("1st","1st");
 	vehicle =	AddStaticVehicle(492,1071.8664,-1854.9331,13.1725, -90, 0, 0); // bus1
	return 1;
}

public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid))
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "1st", true))
    {
      PutPlayerInVehicle(playerid, vehicle, 0);
    }
    return 1;
  }
  return 1;
}
ive noticed that if i remove PutPlayerInVehicle from the filterscript, the NPC doesn't disconnect
Reply


Messages In This Thread
[problem]PutPlayerInVehicle - by Angelus~ - 06.12.2009, 18:55
Re: [problem]PutPlayerInVehicle - by patchkinson - 06.12.2009, 20:45
Re: [problem]PutPlayerInVehicle - by radhakr - 06.12.2009, 20:52
Re: [problem]PutPlayerInVehicle - by patchkinson - 06.12.2009, 21:09
Re: [problem]PutPlayerInVehicle - by Angelus~ - 06.12.2009, 22:09
Re: [problem]PutPlayerInVehicle - by DJDhan - 07.12.2009, 09:02

Forum Jump:


Users browsing this thread: 1 Guest(s)