Jump to content
  • 0

pomoc NPC


INSANE_25_ICON

Dotaz

Čaute zase som tu s tymi NPC-kami pozeral som par "TuT-ov" a vysledok 5 errorov prosím help :


public OnGameModeInit()
{
print("xD");
ConnectNPC("Zombie","Bot1");
SetGameModeText("xD");
return 1;
}

public OnNPCModeInit()
{
    #define RECORDING "Zombie"
    #define RECORDING_TYPE 1
    #include <a_npc>
    main(){}
    public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    #if RECORDING_TYPE == 2
  public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
  public OnNPCExitVehicle() StopRecordingPlayback();
    #else
  public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE RECORDING);
    #endif
    return 1;
}

/* ERRORS */

C:\Documents and Settings\InSaNe_25_IcOn\Plocha\NTE.pwn(46) : error 017: undefined symbol "main"
C:\Documents and Settings\InSaNe_25_IcOn\Plocha\NTE.pwn(47) : error 029: invalid expression, assumed zero
C:\Documents and Settings\InSaNe_25_IcOn\Plocha\NTE.pwn(47) : error 017: undefined symbol "OnRecordingPlaybackEnd"
C:\Documents and Settings\InSaNe_25_IcOn\Plocha\NTE.pwn(47) : error 017: undefined symbol "StartRecordingPlayback"
C:\Documents and Settings\InSaNe_25_IcOn\Plocha\NTE.pwn(47) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0


C:\Documents and Settings\InSaNe_25_IcOn\Plocha\NTE.pwn(46) : error 017: undefined symbol "StartRecordingPlayback"
C:\Documents and Settings\InSaNe_25_IcOn\Plocha\NTE.pwn(47) : error 017: undefined symbol "RECORDING_TYPE"
C:\Documents and Settings\InSaNe_25_IcOn\Plocha\NTE.pwn(51) : error 017: undefined symbol "StartRecordingPlayback"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.


  public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE RECORDING); //51
    public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING); // 46
    #if RECORDING_TYPE == 2 //47
Link to comment
Share on other sites

  • 0

Nikdy nepochopím prečo robíš NPC keď nevieš ani to, že proste public do publicu sa nesmie dať ...

 

//Mimochodom nabudúce si daj include do publicu aby ti ten INC nečítal druhý public :)  :rofl:

Link to comment
Share on other sites

  • 0

ty musíš mať jedno amx ako mód, a druhé amx pre npc v npcmodes, nemôžeš to narvať do jedneho scriptu

Už som nato prišiel ale teraz mam problém nevidím NPC a ani neho chodzu ale všetko mam tak ako v navode

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...