Szerző Téma: Dialog probléma  (Megtekintve 1395 alkalommal)

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Dialog probléma
« Dátum: 2012. március 09. - 15:57:34 »
0 Show voters
hy!
Kérnék egy kis segítséget  :)
Igazából pawnoba nincs hiba.
Beírom hogy /csdm behozz a dialogot és azon belül van a DeathMach 5  de hiába megyek rá nem jön be a többi
Nem  jöttem rá mi a hiba
Köszönöm!
 
      if (strcmp(\"/csdm\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"{ff0303}Csapat DeathMach\", \"{00a806}DeathMach 5\", \"Kiválasztás\", \"Mégse\");
return 1;
}

 


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID)
{
if(response)
{
   if(listitem == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"{ff0000}DeathMach5\", \"{429900}Terorista\\nSwat\", \"Kiválasztás\", \"Mégse\");
            }
}
return 1;
}
if(dialogid == DIALOGID+1)
{
if(response)
{
   if(listitem == 0)
   {   
      SetPlayerPos(playerid,2351.6519,-652.6674,128.0547);
      Object(playerid);
                new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
            }
   if(listitem == 1)
   {   
      SetPlayerPos(playerid,2426.3708,-648.3480,125.8088);
      Object(playerid);
       new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
          }
}
return 1;
}
return 0;
}

Dialog probléma
« Válasz #1 Dátum: 2012. március 09. - 16:57:08 »
+1 Show voters
[pawn]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID)
{
   if(response)
   {
      if(listitem == 0)
      {
         ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"{ff0000}DeathMach5\", \"{429900}Terorista\\nSwat\", \"Kiválasztás\", \"Mégse\");
            }
if(dialogid == DIALOGID+1)
{
   if(response)
   {
      if(listitem == 0)
      {   
         SetPlayerPos(playerid,2351.6519,-652.6674,128.0547);
         Object(playerid);
                new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
            }
      if(listitem == 1)
      {   
         SetPlayerPos(playerid,2426.3708,-648.3480,125.8088);
         Object(playerid);
          new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
          }
   }
   return 1;
}
return 0;
 }[/pawn]

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Dialog probléma
« Válasz #2 Dátum: 2012. március 09. - 17:05:22 »
0 Show voters
Úgy Error
Ha nincs benne
 
      }
return 1;
}

Nem elérhető buci11

  • 502
    • Profil megtekintése
Dialog probléma
« Válasz #3 Dátum: 2012. március 09. - 17:12:01 »
0 Show voters
Talán így?
[pawn]   if(dialogid == DIALOGID)
    {
   if(response == 1)
   {
      switch(listitem)
      {
          case 0:
          {
            ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"{ff0000}DeathMach5\", \"{429900}Terorista\\nSwat\", \"Kiválasztás\", \"Mégse\");
          }
      }
   }
   return 1;
}[/pawn]

Dialog probléma
« Válasz #4 Dátum: 2012. március 09. - 17:12:38 »
+1 Show voters
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 
if(dialogid == DIALOGID)
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"{ff0000}DeathMach5\", \"{429900}Terorista\\nSwat\", \"Kiválasztás\", \"Mégse\");
}
}
}
if(listitem == 2)
{
SetPlayerPos(playerid,2426.3708,-648.3480,125.8088);
Object(playerid);
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált\", string);
SendClientMessageToAll(0x00FFFFAA, string);
}
 
 
if(dialogid == DIALOGID+1)
{
if(response)
{
   if(listitem == 0)
   {
      SetPlayerPos(playerid,2351.6519,-652.6674,128.0547);
      Object(playerid);
                new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
            }
}
return 1;
}
return 0;
}

 
teszteltem Hibátlan

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Dialog probléma
« Válasz #5 Dátum: 2012. március 09. - 17:29:44 »
0 Show voters
:hmmm:
Érdekes , a szerveren még mindig nem hozza be ezt a részt
Hogy kilehessen választani hogy terrorista vagy swat
 
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"{ff0000}DeathMach5\", \"{429900}Terorista\\nSwat\", \"Kiválasztás\", \"Mégse\");

Dialog probléma
« Válasz #6 Dátum: 2012. március 09. - 17:33:31 »
+1 Show voters
Figyelj Én megcsinálnám, Letesztelve csak nincs meg minden hozzávaló, ahhoz hogy letudjam tesztelni!

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Dialog probléma
« Válasz #7 Dátum: 2012. március 09. - 18:06:26 »
0 Show voters
teszteltem Hibátlan[/quote]
Akkor most letesztelted, vagy nem?

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Dialog probléma
« Válasz #8 Dátum: 2012. március 09. - 18:09:50 »
0 Show voters
A pawnoba nem jelzett hibát , ahogy amit én csináltam az se .
/Csdm
ott még bejön a dialog de tovább már nem

Dialog probléma
« Válasz #9 Dátum: 2012. március 09. - 18:11:57 »
+1 Show voters
Cannon ugy teszteltem hogy Nem ir hibát a pawno

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Dialog probléma
« Válasz #10 Dátum: 2012. március 09. - 18:28:14 »
0 Show voters
Remélem jó lesz Lusti, nem tudom tesztelni, mert nem indul el a sampom.
Gondolom tudod, hogy mit hova kell beírni, tehát azt most nem írnám le, ha mégsem, szólj.
 

#define DM 2000
#define DM5 2001
 
if (strcmp(\"/csdm\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DM, DIALOG_STYLE_LIST, \"{ff0303}Csapat DeathMach\", \"{00a806}DeathMach 5\", \"Kiválasztás\", \"Mégse\");
return 1;
}
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DM)
{
if(response)
{
   if(listitem == 0)
   {
      ShowPlayerDialog(playerid, DM5, DIALOG_STYLE_LIST, \"{ff0000}DeathMach5\", \"{429900}Terorista\\nSwat\", \"Kiválasztás\", \"Mégse\");
            }
}
return 1;
}
if(dialogid == DM5)
{
if(response)
{
   if(listitem == 0)
   {
      SetPlayerPos(playerid,2351.6519,-652.6674,128.0547);
      //Object(playerid);
                new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
            }
   if(listitem == 1)
   {
      SetPlayerPos(playerid,2426.3708,-648.3480,125.8088);
      //Object(playerid);
       new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
          }
}
return 1;
}
return 0;
}

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Dialog probléma
« Válasz #11 Dátum: 2012. március 09. - 18:41:57 »
0 Show voters
Köszi , De nem hiszem el  :confused:
Hogy kiválasszam a swat-ot vagy a terroristán  az már nem jön be

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Dialog probléma
« Válasz #12 Dátum: 2012. március 09. - 18:44:39 »
0 Show voters
nem lehet hogy ütközés van a dialógok között ?

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Dialog probléma
« Válasz #13 Dátum: 2012. március 09. - 18:56:40 »
0 Show voters
Idézetet írta: ZzzzzZ date=1331315079\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18190\" data-ipsquote-contentclass=\"forums_Topic
nem lehet hogy ütközés van a dialógok között ?
 
De
Valamelyik fs-ben van valami egyezés
Egy alapmóddal kipróbáltam és kivettem az fs-eket  és mûködik
Már a módom-al is !


Megvan:  :D
Maradjunk Cannonn példájánál
 
#define DM 2000
#define DM5 2001
 
if (strcmp(\"/csdm\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DM, DIALOG_STYLE_LIST, \"{ff0303}Csapat DeathMach\", \"{00a806}DeathMach 5\", \"Kiválasztás\", \"Mégse\");
return 1;
}
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DM)
{
if(response)
{
   if(listitem == 0)
   {
      ShowPlayerDialog(playerid, DM5, DIALOG_STYLE_LIST, \"{ff0000}DeathMach5\", \"{429900}Terorista\\nSwat\", \"Kiválasztás\", \"Mégse\");
            }
}
return 1;
}
if(dialogid == DM5)
{
if(response)
{
   if(listitem == 0)
   {
      SetPlayerPos(playerid,2351.6519,-652.6674,128.0547);
      //Object(playerid);
                new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
            }
   if(listitem == 1)
   {
      SetPlayerPos(playerid,2426.3708,-648.3480,125.8088);
      //Object(playerid);
       new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
          }
}
return 1;
}
return 0;
}

 
És ez zavar be :
 
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, \"{ff0000}Szabályzat! {00bf10}Föadmin: [Lu$ta]\",
\"{f70000}Tilos káromkodni a szerveren!\\nNe Drive By-ozz!\\nNe Spawn killez!\\nTilos harc közbe /health,/armour Parancsot használni, Következmény Warn,Kick!\\nTilos más szervereket hírdetni!\\nTilos a Flood!\\nCleo Mod használata lehetséges\\nCsitt/hack lehetséges Kivéve\\n-Money Hack\\n-Tiltott fegyverek\\n-Minigun,Lángszóró,Rakétavetõ,Aknavetõ\\nHa ezeket nem tartod be akkor bannolunk!\\n\\n{005bf7}Üdv: <[HUN]><Hybrid>[$tunt/Drift/Race]>[0.3d] Csapata!\",\"Elfogadom\",\"Elutasítom\");
return 1;
}

 

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_RULES) {
       if(response == 1) return SendClientMessage(playerid, -1, \"{ff0000} A szabályzatot elfogadtad , {25b800}jó játékot kíván az {ff0000}admin team\");
else {
            new string[128];
         GetPlayerName(playerid,name,sizeof name);
         format(string,sizeof string,\"SERVER: %s ki lett rúgva. Aki nem fogadja el a szabályzatot az ne is akarjon játszani :)\",name);
         SendClientMessageToAll(COLOR_LIGHTRED,string);
         Kick(playerid);
       }
}
return 1;
}

 
Mit kéne változtatni?  :hmmm:
« Utoljára szerkesztve: 2012. március 09. - 19:20:53 írta <[Lu$ta]> »

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Dialog probléma
« Válasz #14 Dátum: 2012. március 09. - 19:44:50 »
0 Show voters
A script elején a #define DIALOG_RULES -nál milyen érték van megadva?
« Utoljára szerkesztve: 2012. március 09. - 20:04:13 írta Cannonn »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal