[NOT SOLVED] Npc disappear bug
#1

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?
Reply
#2

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?
Reply
#3

You mean respawn by NPC?
Reply
#4

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.
Reply
#5

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

Reply
#6

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
Reply
#7

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
Reply
#8

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
Reply
#9

of course i did...
Reply
#10

I dont have in the radar the npc to...
Reply
#11

No one?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)