SA-MP Forums Archive
a problem with NPC[REP+] - 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)
+--- Thread: a problem with NPC[REP+] (/showthread.php?tid=486222)



a problem with NPC[REP+] - Antoniohl - 07.01.2014

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. ;(


Re: a problem with NPC[REP+] - MatriXgaMer - 07.01.2014

No code no help.


Re: a problem with NPC[REP+] - Antoniohl - 07.01.2014

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


Respuesta: a problem with NPC[REP+] - Swedky - 07.01.2014

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.



Re: a problem with NPC[REP+] - Antoniohl - 07.01.2014

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



Re: a problem with NPC[REP+] - Antoniohl - 07.01.2014

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);



Respuesta: a problem with NPC[REP+] - Swedky - 07.01.2014

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


Re: a problem with NPC[REP+] - Antoniohl - 07.01.2014

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


Re: a problem with NPC[REP+] - Antoniohl - 08.01.2014

so can anyone help me?


Re: a problem with NPC[REP+] - Babul - 08.01.2014

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