[NOT SOLVED] Npc disappear bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [NOT SOLVED] Npc disappear bug (
/showthread.php?tid=143124)
[NOT SOLVED] Npc disappear bug -
Ben147 - 21.04.2010
I dont know why i tryed everything after i add a idle npc the npc sometimes disappear and back
disappear and back
From where should the problem is?
Re: Npc disappear bug -
DJDhan - 21.04.2010
Quote:
Originally Posted by Ben147
I dont know why i tryed everything after i add a idle npc the npc sometimes disappear and back
disappear and back
From where should the problem is?
|
I think it can be your script

How many NPCs do you have?
Do all NPCs have this bug?
Show us the script?
Re: Npc disappear bug -
Stunt-Andreas - 21.04.2010
You mean respawn by NPC?
Re: Npc disappear bug -
DJDhan - 21.04.2010
Quote:
Originally Posted by »»[DG
тσкyσDяιFт[SU]™«« ]
You mean respawn by NPC?
|
Nope.It can be a code error in either the NPC script or in the OnplayerSpawn.
Re: Npc disappear bug -
Ben147 - 21.04.2010
I have only 1npc
and this is my npc script
OnPlayerSpawn
Quote:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Zak", true))
{
SetPlayerPos(playerid, 2448.1091,-1963.3397,13.5469);
SetPlayerSkin(playerid, 125);
SetPlayerTeam(playerid, 255);
SetPlayerFacingAngle(playerid, 171.5765);
}
|
OnGameModeInit:
Код:
ConnectNPC("Zak","npcidle");
And if(IsPlayerNpc(playerid)) return 1;
in some public's
Re: Npc disappear bug -
Torran - 21.04.2010
Does it disappear and then appear at a different location?
Or does it disappear for a bit then come straight back,
If its the second it may be the end of the recording and its respawning
Re: Npc disappear bug -
Ben147 - 21.04.2010
disappear for a bit then come straight back
it's npcidle record ...
i tryed to make by my self idlerecord and i didn't moved from my pos and the record have the same problem
Re: [NOT SOLVED] Npc disappear bug -
CAR - 21.04.2010
Have you created a file in the map /npcmodes/ if you didn't it's to long for me to explain, try to find it out in this Tutorial:
http://forum.sa-mp.com/index.php?topic=119947.0
Re: [NOT SOLVED] Npc disappear bug -
Ben147 - 21.04.2010
of course i did...
Re: [NOT SOLVED] Npc disappear bug -
Ben147 - 21.04.2010
I dont have in the radar the npc to...
Re: [NOT SOLVED] Npc disappear bug -
Ben147 - 22.04.2010
No one?