Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NPC probb

hee,

Ik ben bezig met een npc, alleen nu krijg ik de volgende errors:

C:\Users\fts\Desktop\SA-MP-03ccc\filterscripts\nppc.pwn(8) : warning 235: public function lacks forward declaration (symbol "OnRecordingPlaybackEnd")

C:\Users\fts\Desktop\SA-MP-03ccc\filterscripts\nppc.pwn(8) : error 017: undefined symbol "StartRecordingPlayback"

C:\Users\fts\Desktop\SA-MP-03ccc\filterscripts\nppc.pwn(11) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle")

C:\Users\fts\Desktop\SA-MP-03ccc\filterscripts\nppc.pwn(11) : error 017: undefined symbol "StartRecordingPlayback"

C:\Users\fts\Desktop\SA-MP-03ccc\filterscripts\nppc.pwn(12) : warning 235: public function lacks forward declaration (symbol "OnNPCExitVehicle")

C:\Users\fts\Desktop\SA-MP-03ccc\filterscripts\nppc.pwn(12) : error 017: undefined symbol "StopRecordingPlayback"

terwijl ik toch wel;

#include <a_samp>

#include <a_npc>

boven aan mijn code heb staan..

Ik heb het ook al geprobeerd met alleen #include <a_samp>, of alleen <a_npc>, geen verandering.

Iemand die weet wat ik hier over het hoofd zie?

Featured Replies

<a_npc> mag nooit in een filterscript. Alle npcmodes moeten in de gelijknamige map gedropt worden en mogen alleen <a_npc> includen, verder niets.

  • Author

<a_npc> mag nooit in een filterscript. Alle npcmodes moeten in de gelijknamige map gedropt worden en mogen alleen <a_npc> includen, verder niets.

Deze snap ik niet helemaal, aangezien op sa-mp forums toch echt een tutorial word gegeven waarbij aangegeven staat dat het ook in een filterscript kan..

En als ik nou die scripts in een map wil plaatsen, moet ik dan gewoon een map IN de filterscripts map aanmaken, met een willekeurige naam ofzo, en moeten daar ook de npc scripts in die je bij de download van de pack krijgt?(traindrivers enzo)?

hier is mijn code als je deze nodig hebt voor uitleg;

#define RECORDING "recording"
#define RECORDING_TYPE 1 

#include <a_samp>

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

public OnFilterScriptInit()
{
 ConnectNPC("npctje","recording");
 return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
if(!IsPlayerNPC(playerid)) return 0;
else if(IsPlayerNPC(playerid))
{
    SetSpawnInfo(playerid,82,0,1415,2774,14.8,91.3,-1,-1,-1,-1,-1,-1);
}
return 1;
}

Dit is een filterscript, en dit is ALLES wat er in staat.

#include <a_npc>

#define RECORDING "recording"
#define RECORDING_TYPE 1 

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

Dit moet je allemaal verplaatsen naar een nieuw, leeg bestand en opslaan als recording.pwn/amx - dat is de naam van het script die je opgegeven hebt in ConnectNPC - in de npcmodes map. De rest mag in het filterscript blijven staan. Sla er ook nog even de documentatie op na: http://wiki.sa-mp.com/wiki/ConnectNPC

  • Author

Dus ik moet de "recording.pwn/amx" in de filterscripts folder laten staan

en de rest van de code, moet ik opslaan in de npcmodes folder?

of allebij in npcmodes/filterscripts?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.