a problem with NPC[REP+]
#1

Hello SA-MP Scripters, i have a problem! i can't load my NPC, They're working in my home host, but in real host it doesn't work, what is the problem?
i'm using United Gaming Script. ;(
Reply
#2

No code no help.
Reply
#3

Code? it's a "NPC" mate, actually i have uploaded them in npcmodes, recordings and everything, also added maxnpc 2 in server.cfg
Reply
#4

Insure yourself with that you should load the script correctly.

pawn Код:
ConnectNPC ("EnzoMetlc", "ScriptNPC"); // ScriptNPC = Example.
Or spend to us the codes that you have in '/npcmodes/scriptnpc/'.

If it is not the problem, please, to provide any more information to us.
Reply
#5

i did mate, and still not working
told ya it's working in my homehost perfect.

Код:
#define RECORDING "Bus2"
#define RECORDING_TYPE 1

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
    public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCExitVehicle() StopRecordingPlayback();
#else
    public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
Код:
#define RECORDING "Bus"
#define RECORDING_TYPE 1

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
    public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCExitVehicle() StopRecordingPlayback();
#else
    public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
Reply
#6

And he're is it.. (im using 2NPC)
Код:
public OnGameModeInit()
{
       	ConnectNPC("BlueBusDriver","Bus");
	ConnectNPC("BlackBusDriver","Bus2");
Код:
new Text3D:NPCTextBlue;
new Text3D:NPCTextBlack;
new NPCBlueBus;
new NPCBlackBus;
new BusID[MAX_PLAYERS];
new BusCost[MAX_PLAYERS];
new PlayerSitting[MAX_PLAYERS];
new Float:Playerx[MAX_PLAYERS], Float:Playery[MAX_PLAYERS], Float:Playerz[MAX_PLAYERS], Float:Playera[MAX_PLAYERS], PlayerSkin[MAX_PLAYERS];
new costtimer;

forward UnfreezeMeNow(playerid);

forward IsAtBlueBusStop(playerid);
forward IsAtBlackBusStop(playerid);
forward ResetView(playerid);
forward CPOff(playerid);
forward CostTimer(playerid);
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
Reply
#7

He remembers that the first argument is to put a name to the NPC and the second one to be to call the script in 'npcmodes/recordings/'.

https://sampwiki.blast.hk/wiki/NPC:ConnectNPC
Reply
#8

i got bus and bus2 in recordings., i mean i got them already
Reply
#9

so can anyone help me?
Reply
#10

did you check for the filename being the *exact* same as in your script?
linux is case-sensitive, that means: "Bus" is not "bus".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)