Jump to content

[Tutorial] Cum sa pornesti un gamemode.


TheXlayder

Recommended Posts

Pentru ca multi dintre voi descarca gamemode-uri, apoi pun comentarii gen "lipseste .amx", nu merg datele de logare, s.a.m.d, azi m-am hotarat sa fac un tutorial in care va arat cum sa porniti un gamemode pe windows.

Gamemode-ul pe care il voi folosi astazi este HardPlay 1.2.0 cu MySQL.

Link catre gamemode :  

 

PARTEA 1 : Baza de date.

  1. Pentru inceput va trebui sa ne instalam pe PC modulele/serviciile Apache/MYSQL/PHPMYADMIN, instaland XAMPP.  Link : https://www.apachefriends.org/xampp-files/7.1.20/xampp-win32-7.1.20-0-VC14-installer.exe
  2. Instalam programul, intram in XAMPP control panel si pornim urmatoarele : Apache si MYSQL
  3. image.png.3b7ca1e0aa24bb375948e365d511d511.png
  4. Tastam localhost/phpmyadmin iar acolo ni se va incarca un panou de comanda al bazelor de date.
  5. image.thumb.png.1bfa24cd8651c07887ea855beab410d1.png
  6. Apasam click pe new, pentru a crea o baza de date, in cazul meu hardplay.
  7. Dam click pe import si importam fisierul .sql din folderul gamemode-ului.
  8. image.thumb.png.fc590959503ecdd864dbe704b6635aea.png
  9. Apoi mergem in PAWNO sau alt editor de text, dupa caz, (ATENTIE:Includurile pe care le folositi trebuie sa fie cele din fisierul pawn al gamemode-ului pentru compatibilitate)
  10. Modificam define-urile SQL_ dupa cum urmeaza.
  11. #define SQL_HOST "localhost"
    #define SQL_USER "root"
    #define SQL_PASS ""
    #define SQL_DB "hardplay"
  12. Apasam pe compile la pawno sau build la Sublime.
  13. Daca nu sunt erori in build log, putem trece la urmatorul pas.
  14. Descarcam ultima versiune de sa:mp server de pe sa:mp.com
  15. Inlocuim samp-server.exe , announce.exe si tot ce tine de .exe din folderul principal cu executabilele din arhiva.
  16. La server.cfg plug-inurile obligatorii sunt (plugins mysql sscanf streamer Whirlpool regex)
  17. Deschidem samp-server.exe si vedem ce apare.
  18. Si daca totul a decurs conform planului, samp-server.exe ar trebui sa afiseze :

image.png.70c9a027ed62e170f586627cb983e92f.png

Cam acesta a fost tutorialul, daca crezi ca te-am ajutat, un +1 nu ar strica.

  • Upvote 1
Link to comment
Share on other sites

  • 6 months later...


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team


Server Plugins
--------------
 Loading plugin: crashdetect
  Failed.
 Loading plugin: sscanf
  Failed.
 Loading plugin: mysql
 >> plugin.mysql: R34 successfully loaded.
  Loaded.
 Loading plugin: streamer
  Failed.
 Loaded 1 plugins.


Started server on port: 7777, with maxplayers: 100 lanmode is OFF.


Filterscripts
---------------
  Loaded 0 filterscripts.

Script[gamemodes/wa-rpg.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0


?

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.