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

Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Tutorials and Packages

  1. #1

    Tutorials and Packages

    Hello, all.
    I'm considering starting development for a VaultMP server and I will organise hosting myself.
    Just wondering one thing, as the Pawn is slightly different to SA:MP, I want to know if there's any tutorials for the regular features such as OnPlayerConnect, but I need to know how to use these functions. Also, I was wondering if there was a package for servers and a tutorial such as a Pawn server package which includes folders like SA:MP Script Package such as it comes with Pawno and all the folders you need, and also includes the VaultMP client.

    All the best,
    TommyGun

  2. #2
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Some documentation for callbacks and functions is available here:

    https://www.vaultmp.com/showwiki.php?...ting+callbacks
    https://www.vaultmp.com/showwiki.php?...ting+functions

    The server package on the Download page includes everything you need (pawncc.exe - compiler, standard.pwn - default example script). Note that you need to compile with -C64 option (see compile.bat). There is no editor, but I guess you can use Pawno from SA-MP without problems (if you just replace includes and the compiler with the vaultmp ones).

  3. #3
    I have to install Fallout 3 on my laptop as I got a new laptop, so do I need Fallout 3 to make a start on my script?

  4. #4
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    No, but for testing in-game it's probably useful.

  5. #5
    Clearly, so on the downloads, I guess I click both Client and Server? Also, what exactly is a master server? And do I just extract the files to my Fallout 3 directory?

  6. #6

  7. #7
    Sorry for all the questions and replies, but it seems most of the callbacks, functions, constants and types tutorials are C/C++ and I was wondering if you have a Pawn version, mainly so I can understand constants inside VaultMP script.

  8. #8
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Except for a few cases, the PAWN interface is identical to the C/C++ one. If you have any specific question regarding something, I'll be happy to help.

    https://www.vaultmp.com/showwiki.php?title=GetName

    The pages show the declaration (both C and PAWN) and explain the parameters. The parameters are listed with leading C type. PAWN has no such types*, but it should be straightforward how to use them if you have a basic understanding of the language. If the PAWN signature is different, it is documented.

    (note that "Code c" boxes may refer to PAWN content (cause there is no PAWN highlighting), which should be easily identified by looking at the syntax)

    *not entirely true, as I defined some constant types, but I documented them as well
    Last edited by foxtacles; 10-02-2012 at 11:56 PM.

  9. #9
    Hmm, seeing as I'm fairly new to all the technical side of Pawn, new name{MAX_PLAYER_NAME}; clearly makes a new string called "name" but I don't understand the parameters inside GetName(player, name);...
    The GetName bit is clear, but the player bit - is this the player you are receiving the name from? And the name bit, what exactly is this? Sorry, I'm not exactly a beginner I just don't understand the VaultMP interpretation of Pawn.

  10. #10
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    It's pretty much the same as the SA-MP function:

    https://wiki.sa-mp.com/wiki/GetPlayerName

    First parameter is the ID (which you have in callbacks), second is the storage. vaultmp uses packed strings and has no len parameter. That's the only difference.

Posting Permissions

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