Intrebare grade navicat

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
Cazy
Nivel 3

Nivel 3
Mesaje: 303
Membru din: 07 Iun 2015, 17:38
Aprecieri: 16  
Mulţumiri: 6  
Medalii

*Problemă:
Tipologie server:PvM
*Resursă folosită:
*ServerFiles utilizat:40k Clean
*Syserr:
Poză:
*Detalii suplimentare: In afara de gradele deja existente (Implementator,High_Wizard,God,Low_Wizard) , mai exista vreo modalitate de a creea unul nou?
Pentru acest mesaj, Cazy for the post:
YoKe
Avatar utilizator
Syron
Developer

Developer
Mesaje: 712
Membru din: 14 Mai 2014, 23:41
Aprecieri: 5  
Mulţumiri: 138  
Medalii

In cmd.cpp sunt toate comenzile definite cu gradul necesar:

Cod: Selectaţi tot

struct command_info cmd_info[] =
Poti sa pui un nume de care vrei tu si apoi sa folosesti:

Cod: Selectaţi tot

if (!ch || (ch->GetGMLevel() < GM_GRADNOU
poti folosii orice operator vrei tu, chiar si '==', dar cu '==' o sa mearga doar pentru gradul respectiv. (chiar daca o sa ai IMPLEMENTOR nu o sa poti folosii comanda daca nu ai GRADNOU)

Ordinea gradelor este in common/length.h:

Cod: Selectaţi tot

enum EGMLevels
In DB poti sa adaugi tu valoarea (prin Navicat) ca si optiune de drop-down. (Design Table)
Pentru acest mesaj, Syron for the post:
Cazy
Avatar utilizator
FRANCIS
Administrator Adjunct

Administrator Adjunct
Mesaje: 7879
Membru din: 06 Noi 2015, 19:52
Regat: Chunjo
Aprecieri: 334  
Mulţumiri: 54528  
Discord: Copiază ID
Medalii

Cazy scrie: ↑21 Oct 2019, 11:09Mersi
ai butonul de mulțumire

[ Postat de pe iPhone ] Imagine
If you talk to a man in a language he understands, that goes to his head. If you talk to him in his own language, that goes to his heart.
Imagine
ENJOY
Imagine
Afișează semnătura
Închis
Răspunsuri
4
Vizualizări
454
Răspunsuri
4
Vizualizări
131
Răspunsuri
2
Vizualizări
402
Răspunsuri
6
Vizualizări
517

Înapoi la “Probleme rezolvate”

  • Informaţie