Jump to content

Gamemode simplu Full ORM inregistrare/logare


NERS

Recommended Posts

Salut, acesta este un gamemode foarte simplu ce are doar sistemul de inregistrare/logare pe dialog, cateva mici functii in plus si o singura comanda (/setskin) facut in totalitate cu ORM (nu exista niciun mysql query/tquery/pquery in gamemode). Consider ca este un inceput ok pentru cei care vor sa foloseasca acest ORM.

Acest GM foloseste Zeex Compiler 3.10.10, samp stdlib si pawn stdlib!
 

Include-uri:
MySQL R41-4,
easyDialog,
YSI 5.5.301 (y_va, y_iterate, y_commands).

Plugin-uri:
MySQL.

Datele de conectare pentru baza de date se pot modifica din fisierul mysql.ini gasit in folderul principal al GM-ului.
 

----- Cache vs ORM -----

Capture.PNG.15e729e0783acc5a5306798d8117c665.PNG

ORM este mai bun decat Cache deoarece nu trebuie sa trimiti atat de multe interogari catre baza de date, un simplu orm_update() la deconectare actualizeaza toate campurile necesare, deci nu trebuie sa faceti un query cu UPDATE de fiecare data.

 

Poze: https://imgur.com/a/Ao1XOFb

Virustotal: https://www.virustotal.com/gui/file/767ec5baf04fddf6b0d7b536258a903c76849229ac346242accf7109ea89f296/detection
Download: https://mega.nz/file/JR1gXBTS#3Rm7j65NWmYERotIUBcEjt8YZy9LrSfJUs-ceMzVN6I

 

Edited by NERS
  • Upvote 2
Link to comment
Share on other sites

  • NERS changed the title to Gamemode simplu Full ORM inregistrare/logare
La 31.05.2021 la 22:51, NERS a spus:

Salut, acesta este un gamemode foarte simplu ce are doar sistemul de inregistrare/logare pe dialog, cateva mici functii in plus si o singura comanda (/setskin) facut in totalitate cu ORM (nu exista niciun mysql query/tquery/pquery in gamemode). Consider ca este un inceput ok pentru cei care vor sa foloseasca acest ORM.

Acest GM foloseste Zeex Compiler 3.10.10, samp stdlib si pawn stdlib!
 

Include-uri:
MySQL R41-4,
easyDialog,
YSI 5.5.301 (y_va, y_iterate, y_commands).

Plugin-uri:
MySQL.

Datele de conectare pentru baza de date se pot modifica din fisierul mysql.ini gasit in folderul principal al GM-ului.
 

----- Cache vs ORM -----

Capture.PNG.15e729e0783acc5a5306798d8117c665.PNG

ORM este mai bun decat Cache deoarece functioneaza la viteze mai mari si cu el nu trebuie sa trimiti atat de multe interogari catre baza de date, un simplu orm_update() la deconectare actualizeaza toate campurile necesare, deci nu trebuie sa faceti un query cu UPDATE de fiecare data.

 

Poze: https://imgur.com/a/Ao1XOFb

Virustotal: https://www.virustotal.com/gui/file/767ec5baf04fddf6b0d7b536258a903c76849229ac346242accf7109ea89f296/detection
Download: https://mega.nz/file/JR1gXBTS#3Rm7j65NWmYERotIUBcEjt8YZy9LrSfJUs-ceMzVN6I

 

E la fel de simplu sa faci un query la deconectare și să lași cache la încărcarea datelor și e mult mai bine.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Salut! Doresc sa fac un compile build system pemtru sublime text 3, dar toate au dat fail.

Ultimul sistem facut de mine a fost cu eroarea la compilare urmatoarea: [WinError 2] The system cannot find the file specified
[cmd: ['pawncc.exe', '-i includes', 'C:\\Users\\Gabi\\Desktop\\for sa-mp.ro\\gamemodes\\rpg1_bhood.pwn', '-;+']]
[dir: C:\Users\Gabi\Desktop\for sa-mp.ro\gamemodes]
[path: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\dotnet\;C:\Users\Gabi\AppData\Local\Microsoft\WindowsApps;]
[Finished]

 

Ma poti ajuta ? Discordul meu este: Gabi81717#9450

 

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.