Jump to content
  • 0

Dialog ??


eXtreMe96

Question

4 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Similar Content

    • By HPQ123
      Salut!
      Va prezint noul include pentru a folosi mai simplu dialoguri.
      Da stiu ca mai este o versiune de acest tip pe internet dar aceasta versiune pe care am facut-o are mai multe si merge mult mai bine.
      https://github.com/HPQ123-Oficill/easyDialog/releases
      Astept un feedback ❤️
    • By CristianLMAO
      Salut!
      Astazi o sa va prezint primul meu sistem pus pe acest site, si o sa va explic ce face fiecare lucru.
      Hai sa incepem.
      Sistemul arata cam asa:

      (dialogul este pozitionat mai in drapta din cauza rezolutiei mele)
      IMPORTANT:
      IN CODUL DE MAI JOS ESTE DECAT CE MAI TREBUIE ADAUGAT, NU TOT GAMEMODUL!!
      TUTORIAL:
       
      //punem include-urile care ne trebuie la acest sistem #include <zcmd>  
      //prima data facem o comanda, dar atentie, ACEASTA COMANDA O POATE FOLOSI ORICINE, daca doriti ca doar admini sa o poata folosi, folositi comanda hasurata! CMD:v(playerid, params[]){ ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Spawn car", "Write your car id: (Min. 400 / Max. 611)", "Spawn", "Close"); //cand scriem "/v" apare acest dialog return 1; } //DACA DORITI SA FIE COMANDA ASTA ACCESIBILA DOAR LA ADMIN: //CMD:v(playerid, params[]){ // // if (IsPlayerAdmin(playerid)) // daca jucatorul este admin: // { // ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Spawn car", "Write your car id: (Min. 400 / Max. 611)", "Spawn", "Close"); //cand scriem "/v" apare acest dialog // } // else{ //daca nu: // SendClientMessage(playerid, 0xFF000090, "You're not admin!"); // } // return 1; //}  
      public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == 1){ // cand raspunde la dialogul cu id-ul 1 se intampla asta: if(!response) return SendClientMessage(playerid, 0xFF000099, "You closed the menu!"); // daca apasa pe butonul de inchidere, acest meniu o sa se inchida. if(strval(inputtext) < 400) return SendClientMessage(playerid, 0xFF000099, "Your car id is under 400!"); // Daca id-ul scris este mai mic de 400 o sa scrie asta if(strval(inputtext) > 611) return SendClientMessage(playerid, 0xFF000099, "Your car id is over 611!"); // Daca id-ul scris este mai mare de 611 o sa scrie asta // inputtext inseamna ce a scris jucatorul in text-box. new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid,X,Y,Z); // aici seteaza valoarea lui X, Y si Z in coordonatele juactorului CreateVehicle(strval(inputtext),X,Y+5,Z,1,1,1,90000); //spawneaza masina cu id-ul din textbox, la coordonatele playerului return 1; } }  
      Daca este sa fi omis ceva, sau daca doriti sa imbunatatesc acest sistem, puteti spune in comentarii.
    • By Liviu Adrian
      Salut, am facut ca in tutorial lui 
       nu am avut nicio eroare, am rezolvat erorile sau warning-urile care erau legat ca uitasem ; sa dau o acolada sau etc. Cand intru pe server din localhost, nu apare nimic, doar sa dau spawn. Mai ziceau unii sa fac update la include, dar nu inteleg ce si cum. Daca ma puteti ajuta pls.
      EDIT: Dupaia cand las sscanf2 in gamemode si la plugins in server.cfg apare asta pe samp-server    
         Error: Function not registered: 'SSCANF_Init'
         Error: Function not registered: 'SSCANF_IsConnected'
         Error: Function not registered: 'SSCANF_Join'
         Error: Function not registered: 'SSCANF_Leave'
      Conexiunea la baza de date gamemode a esuat ---> Server Inchis ~~~
    • By Serban
      Salutare sa-mp.ro, astazi m-am decis sa dau 2 sisteme:
      1.Vehicle Spawn Dialog - Cum a-ti vazut pe serverele stunt sau pe RSS.Am facut un sistem de spawnare masini la locatia dumneavoastra pe dialog si adaugate pe categorii cat am putut eu de bine.A durat cateva ore sa-l fac dar merita totul.
       
      2.Gun Buy Dialog - Tot ca si pe serverele stunt sau RSS.Am facut un sistem sa-ti poti achizitiona arme dintr-un magazin.Le-am catalogat in functie de modul lor de tras.A durat aproximativ 1 ora de facut dar merita incercat.
      Sursa Cod Vehicle Spawn Dialog: Vehicle Spawn Dialog - Pastebin.com
      Sursa Cod Gun Buy Dialog: Dialog Arme - Pastebin.com
      Nu am putut face poze imi pare rau.
       
      Va doresc o zi buna!
    • By Dragos_rex
      SA-MP Dedicated Server
      ----------------------
      v0.3.7-R2, (C)2005-2015 SA-MP Team
      [07:03:41] 
      [07:03:41] Server Plugins
      [07:03:41] --------------
      [07:03:41]  Loading plugin: GeoIP_Plugin
      [07:03:41] GeoIP_Plugin got loaded.
      [07:03:41]   Loaded.
      [07:03:41]  Loading plugin: mysql
      [07:03:41]  >> plugin.mysql: R39-6 successfully loaded.
      [07:03:41]   Loaded.
      [07:03:41]  Loading plugin: nativechecker
      [07:03:41]   Loaded.
      [07:03:41]  Loading plugin: sscanf
      [07:03:41] 
      [07:03:41]  ===============================
      [07:03:41]       sscanf plugin loaded.     
      [07:03:41]          Version:  2.8.3        
      [07:03:41]   (c) 2018 Alex "Y_Less" Cole  
      [07:03:41]  ===============================
      [07:03:41]   Loaded.
      [07:03:41]  Loading plugin: streamer
      [07:03:41] 
      *** Streamer Plugin v2.9.4 by Incognito loaded ***
      [07:03:41]   Loaded.
      [07:03:41]  Loading plugin: Whirlpool
      [07:03:41]  
      [07:03:41]  ==================
      [07:03:41]  
      [07:03:41]   Whirlpool loaded
      [07:03:41]  
      [07:03:41]  ==================
      [07:03:41]  
      [07:03:41]   Loaded.
      [07:03:41]  Loaded 6 plugins.
      [07:03:41] 
      [07:03:41] Filterscripts
      [07:03:41] ---------------
      [07:03:41]   Loading filterscript 'antiflood.amx'...
      [07:03:41] AMX (41028728) loaded
      [07:03:41]   Loading filterscript 'anti-flood.amx'...
      [07:03:41] AMX (40861560) loaded
      [07:03:41]   Loading filterscript 'anti-flood-rate.amx'...
      [07:03:41] AMX (40818952) loaded
      [07:03:41]   Loading filterscript 'Anti-join-flooding.amx'...
      [07:03:41] AMX (40784544) loaded
      [07:03:41]  Anti-join-flooding script loaded.
      [07:03:41]   Loaded 4 filterscripts.
      [07:03:41]    Error: Function not registered: 'SSCANF_Init'
      [07:03:41]    Error: Function not registered: 'SSCANF_IsConnected'
      [07:03:41]    Error: Function not registered: 'SSCANF_Join'
      [07:03:41]    Error: Function not registered: 'SSCANF_Leave'
      [07:03:41]    Error: Function not registered: 'CreateDynamicRectangle'
      [07:03:41]    Error: Function not registered: 'DestroyDynamicObject'
      [07:03:41]    Error: Function not registered: 'CreateDynamic3DTextLabel'
      [07:03:41]    Error: Function not registered: 'CreateDynamicPickup'
      [07:03:41]    Error: Function not registered: 'CreateDynamicObject'
      [07:03:41]    Error: Function not registered: 'MoveDynamicObject'
      [07:03:41]    Error: Function not registered: 'sscanf'
      [07:03:41]    Error: Function not registered: 'UpdateDynamic3DTextLabelText'
      [07:03:41]    Error: Function not registered: 'SetDynamicObjectRot'
      [07:03:41]    Error: Function not registered: 'DestroyDynamicPickup'
      [07:03:41]    Error: Function not registered: 'DestroyDynamic3DTextLabel'
      [07:03:41]    Error: Function not registered: 'CountDynamicObjects'
      [07:03:41]    Error: Function not registered: 'CountDynamicPickups'
      [07:03:41]    Error: Function not registered: 'CountDynamic3DTextLabels'
      [07:03:41] AMX (40871392) loaded
      [07:03:42] SUCCES: Conexiunea la baza de date`afk` a fost stabilita!
      [07:03:42] [script] 42 turfs loaded.
      [07:03:42] [script] 242 vehicles loaded.
      [07:03:42] [script] 0 houses loaded.
      [07:03:42] Businesses loaded: 29
      [07:03:42] -----------------------------------------------------------------------------------
      [07:03:42] Copyright: Server & Gamemode by Florin. aka D.M.C - All rights reserved to him.
      [07:03:42] -----------------------------------------------------------------------------------
      [07:03:42] main() has been called.
      [07:03:42] Number of vehicle models: 64
      [07:04:06] [connection] 127.0.0.1:64552 requests connection cookie.
      [07:04:07] [connection] incoming connection: 127.0.0.1:64552 id: 0
      [07:04:08] [join] Asyth has joined the server (0:127.0.0.1)
      [07:04:08] Player Asyth (0) reports client version: 0.3.7
      [07:04:20] [part] Asyth has left the server (0:1)
      Cand incerc sa ma contectez la server imi apare "Checking ban status" apoi imi apare jos butonul de spawn si cele doua sageti si ramane asa.Vreo idee de ce face asa?
  • Recently Browsing   0 members

    No registered users viewing this page.

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