Skip to content

Latest commit

 

History

History
88 lines (63 loc) · 2.52 KB

CONTRIBUTING.md

File metadata and controls

88 lines (63 loc) · 2.52 KB

Contributing to OpenReallife SA:MP

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting an issue
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

Quickstart Local Pawno Development

The following explains how to set up and start an SA:MP Development Server locally.

Server konfigurieren

Navigate to /samp

1. Check server.cfg file

  • Open server.cfg
  • In the line gamemode0 should be: gamemode0 openReallife
  • In the line plugins should be: plugins mysql sscanf streamer

2. Set up local MySQL database

Click here to learn how to set up a local MySQL database with XAMPP.

  • Navigate to PhpMyAdmin

  • Open the Import tab

  • Import the database file openReallife_DB.sql (File)

    • A database with the name ni6595017_1_DB is created
    • This contains the tables: carshop, faction, user, vehicle

3. Create file mysql_connect.inc

  • Navigate to /samp/include
  • Create a file with the name mysql_connect.inc
  • Open the file mysql_connect.inc
  • Configure the code and add your own username and password:
    /*
	SQL Auth Data
    */

    #define SQL_HOSTNAME "localhost"
    #define SQL_DATABASE "ni6595017_1_DB"
    #define SQL_USERNAME "YOUR DATABASE USERNAME"
    #define SQL_PASSWORD "YOUR DATABASE PASSWORD"
  • Save file

Start server

Navigate to /samp

  • Start samp-server.exe
  • Check if the server was started correctly

Add server in launcher

  • Launch the San Andreas Multiplayer 0.3.7-R4 Launcher
  • Press IconButton Add Server
  • Enter the server data: localhost:7777
  • Press OK Button
  • The development server will be displayed in the server list in the Favorites tab.

Programming with Pawno

Navigate to /samp/pawno

  • Start pawno.exe
  • Open the file: openReallife.pwn