This site has been archived and made available for preservation purposes. No edits can be made.

Results 1 to 7 of 7

Thread: Example scripts

  1. #1

  2. #2
    Recycler, how do we export the scripts?
    Do we just leave them in .cpp source files?


    I just come here to view whether there has been any progress or not, and review the wonderful progress that Recycler and the development team has made.
    My sincere thanks goes to them and to others who value my contributions the community, not to mention the ones that solely contribute.

  3. #3
    Senior Member Volumed's Avatar
    Join Date
    Aug 2011
    Location
    Holland
    Posts
    1,010
    Blog Entries
    1
    [scripts]
    ;comma seperated list of PAWN / C++ scripts, will be loaded in the given order
    ;scripts need to be located in the root
    scripts=vaultscript.dll

  4. #4
    Thank you Volumed.
    Also Recycler, is there anyway to implement natives for PAWN as of now?


    I just come here to view whether there has been any progress or not, and review the wonderful progress that Recycler and the development team has made.
    My sincere thanks goes to them and to others who value my contributions the community, not to mention the ones that solely contribute.

  5. #5
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    You have to compile C++ scripts with your C++11 compiler of choice into a dynamic-link / shared object file.

    What do you mean with natives? If you mean functions declared with "native", no, that's not possible.

    However, you can define new "natives" in a C++ script and use MakePublic to expose them to other scripts. In your PAWN scripts, you can then use CallPublic. This way you have almost the same effect.
    Last edited by foxtacles; 06-10-2012 at 04:06 PM.

  6. #6

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •