Help with NPC.
#1

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

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

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)