NPC 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: NPC bug (
/showthread.php?tid=201798)
NPC bug -
gedux123775 - 22.12.2010
What it is wrong? I put this in my gm and NPC not start.
Код:
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
if(IsPlayerNPC(i)) //Tikrina, ar ?aid?jas paleistas kaip NPC botas.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(i, npcname, sizeof(npcname)); //Gauna NPC boto vard?.
if(!strcmp(npcname, "Traukinys", true)) //Tikrina, ar NPC boto vardas Martin_M
{
PutPlayerInVehicle(i, traukinyss, 0); //Pasodina NPC bot? ? jam sukurt? transport?.
SetPlayerColor(i,COLOR_RED);
}
}
return 1;
}
Re: NPC bug -
gedux123775 - 23.12.2010
Up, please help.
Re: NPC bug -
boelie - 23.12.2010
did you put this under onplayerspawn? its not enough info your giving. The problem can also be in your
npc script, the place where you put your recording, the name you gave it or the amount of npc's you put in server.cfg