SA-MP Forums Archive
Help with NPC. - 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: Help with NPC. (/showthread.php?tid=219846)



Help with NPC. - Denisenko - 02.02.2011

My NPC not logged!

[23:06:16] [npc:join] Taksi has joined the server (0:127.0.0.1)
[23:06:19] [npcart] Taksi has left the server (0:2)

<...> I insert:
#include <a_npc>

Код:
public OnNPCEnterVehicle(vehicleid, seatid)
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_lv_to_sf_x1");
}
but

Код HTML:
C:\Users\Vartotojas\Desktop\modas\mgrp.pwn(11904) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle")
C:\Users\Vartotojas\Desktop\modas\mgrp.pwn(11906) : error 017: undefined symbol "StartRecordingPlayback"



Re: Help with NPC. - admantis - 02.02.2011

sometimes this happens because your admin system, will kick players (NPC) for spawning without logging or something like that, so i think you will need to edit it


Re: Help with NPC. - hadzx - 02.02.2011

Quote:
Originally Posted by Denisenko
Посмотреть сообщение
My NPC not logged!

[23:06:16] [npc:join] Taksi has joined the server (0:127.0.0.1)
[23:06:19] [npcart] Taksi has left the server (0:2)

<...> I insert:
#include <a_npc>

Код:
public OnNPCEnterVehicle(vehicleid, seatid)
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_lv_to_sf_x1");
}
but

Код HTML:
C:\Users\Vartotojas\Desktop\modas\mgrp.pwn(11904) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle")
C:\Users\Vartotojas\Desktop\modas\mgrp.pwn(11906) : error 017: undefined symbol "StartRecordingPlayback"



put this under onplayerrequestclass

Код:
if(IsPlayerNPC(playerid)) return 1;



Re: Help with NPC. - Steven Paul - 02.02.2011

do you have some kind of password in your server. Or there is something restrictive in OnPlayerConnect


Re: Help with NPC. - Fool - 02.02.2011

StartRecordingPlayback
you typed this wrong. + you need to foward something else.


Re: Help with NPC. - hadzx - 02.02.2011

Quote:
Originally Posted by Porsche911
Посмотреть сообщение
StartRecordingPlayback
you typed this wrong. + you need to foward something else.
if its joined and sitting on the login/register then put my code