Problem with my NPC
#1

Код:
Exception At Address: 0x7C9109D8



Registers:

EAX: 0x00BC77D0	EBX: 0x009B0000	ECX: 0xC4E651C1	EDX: 0x44E7EE6F

ESI: 0x00BC77C8	EDI: 0x00BC77A8	EBP: 0x0012FD28	ESP: 0x0012FD1C

EFLAGS: 0x00010246



Stack:
The second time I tried starting up my server.... it said [npc:join] Angella has joined the server (127.0.0.1) Then it said Angella has left the server... How do I fix this?
Reply
#2

if you have the NPC driving around make sure you have added the car in the script or else it disconnects and make sure to put them in it aswell or it will do the same thing.
Reply
#3

No.. the NPC is walking, and I have the recorded file in the folder
Reply
#4

make sure you have an npcmode like this,

pawn Код:
#define RECORDING "INSERT.REC FILE NAME" // Name of .rec file without the extension
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
Reply
#5

and make sure in the Filterscript it uses that you have something like this

pawn Код:
if(!strcmp(playername,"NPCNAMEHERE",true)) {
      SetSpawnInfo( playerid, 0, 281, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
        //Other stuff
    }
Reply
#6

Well, in 0.3 /save is disabled... well at least for me.. even when I login to RCON
Reply
#7

Quote:
Originally Posted by gemadon
Well, in 0.3 /save is disabled... well at least for me.. even when I login to RCON
It's not disabled, you just don't get a text that you saved.

It does save in the saved folder like in 0.2 tho.
Reply
#8

it doesnt matter what co-ords the NPC spawns at the recording will play over it and wont show the npc at that location atall
Reply
#9

Thanks I fucking love you guys.... and one of the main reasons it wasnt working was because, in my gamemode, you have to login before spawning... so I added next to if(logged[playerid] == 0) I put && !IsPlayerNPC(playerid) next to it.... thanks for your help
Reply
#10

One more question.... do you have to add StartRecordingPlayback under OnPlayerSpawn, or does it automatically tart when the NPC connects?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)