Szerző Téma: Nem reagál, dialog  (Megtekintve 936 alkalommal)

Nem elérhető The

  • 4384
    • Profil megtekintése
Nem reagál, dialog
« Dátum: 2012. március 11. - 19:02:41 »
0 Show voters
Csáó.
Miért nem csinál semmit se?
 
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(\"/dteszt\",cmdtext,true))
{
    new PlayerName[24];
       GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
   if(strcmp(PlayerName,\"Deew\",true))//ide írod a nevet
{
SendClientMessage(playerid,0xff0000AA,\"Ezt a parancsot csak Deew használhatja!\"); //ide hogy mit tegyen ha nem az a neve
}
else
{
        ShowPlayerDialog(playerid, 5111, DIALOG_STYLE_LIST, \"Teszt\",\"Teszt1\\nTeszt2\",\"Kiválaszt\",\"Mégse\");
}
}
return 0;
}
public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
  if(dialogid == 5111)
{
if(response)
{
   if(listitem == 0)
   {
     SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
      }
   if(listitem == 1)
   {
        SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
        return 1;
           }
}
}
  return 0;
}

 
Edit: bejön a menü de ha rákattintok nem csinál semmit.

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Nem reagál, dialog
« Válasz #1 Dátum: 2012. március 11. - 19:07:09 »
0 Show voters

public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
  if(dialogid == 5111)
{
if(response == 1)
{
switch(listitem)
{
   case 0:
   {
     SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
      }
        case 1:
   {
                SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
           }
}
}
}
  return 0;
}
« Utoljára szerkesztve: 2012. március 11. - 19:22:04 írta Cannonn »

Nem elérhető The

  • 4384
    • Profil megtekintése
Nem reagál, dialog
« Válasz #2 Dátum: 2012. március 11. - 19:09:36 »
0 Show voters
Mostmár be se jön.
Edit: bejön de nem reagál.
« Utoljára szerkesztve: 2012. március 11. - 19:14:29 írta Daviid »

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Nem reagál, dialog
« Válasz #3 Dátum: 2012. március 11. - 19:16:21 »
0 Show voters

public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
  if(dialogid == 5111)
{
if(response == 1)
{
switch(listitem)
{
   case 0:
   {
     SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
      }
        case 1:
   {
                SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
           }
}
}
}
  return 0;
}
« Utoljára szerkesztve: 2012. március 11. - 19:21:57 írta Cannonn »

Nem elérhető The

  • 4384
    • Profil megtekintése
Nem reagál, dialog
« Válasz #4 Dátum: 2012. március 11. - 19:19:44 »
0 Show voters
ÉS MÉG MINDIG nem jó  :tantrum:
 
#include <a_samp>
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(\"/dteszt\",cmdtext,true))
{
    new PlayerName[24];
       GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
   if(strcmp(PlayerName,\"Deew\",true))//ide írod a nevet
{
SendClientMessage(playerid,0xff0000AA,\"Ezt a parancsot csak Deew használhatja!\"); //ide hogy mit tegyen ha nem az a neve
}
else
{
        ShowPlayerDialog(playerid, 5111, DIALOG_STYLE_LIST, \"Teszt\",\"Teszt1\\nTeszt2\",\"Kiválaszt\",\"Mégse\");
}
}
return 0;
}
public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
  if(dialogid == 5111)
{
switch(listitem)
{
   case 0:
   {
     SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
      }
    case 1:
   {
            SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
           }
}
}
  return 0;
}

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Nem reagál, dialog
« Válasz #5 Dátum: 2012. március 11. - 19:22:19 »
0 Show voters
Jónak kell lennie.
 

public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
  if(dialogid == 5111)
{
if(response == 1)
{
switch(listitem)
{
   case 0:
   {
     SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
      }
        case 1:
   {
                SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
           }
}
}
}
  return 0;
}

Nem elérhető The

  • 4384
    • Profil megtekintése
Nem reagál, dialog
« Válasz #6 Dátum: 2012. március 11. - 19:23:55 »
0 Show voters
Idézetet írta: Cannonn date=1331490139\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18326\" data-ipsquote-contentclass=\"forums_Topic
Jónak kell lennie.
 

public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
  if(dialogid == 5111)
{
if(response == 1)
{
switch(listitem)
{
   case 0:
   {
     SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
      }
        case 1:
   {
                SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
           }
}
}
}
  return 0;
}

 

Megõrülök még mindig nem jó!
Agyfaszt kapok

Nem reagál, dialog
« Válasz #7 Dátum: 2012. március 11. - 19:26:12 »
0 Show voters
Az nem lehet, hogy az 5111-es Dialogod id-d már van? Próbáld átírni azt, mondjuk 5222-re, és úgy az összes többit.

Nem elérhető The

  • 4384
    • Profil megtekintése
Nem reagál, dialog
« Válasz #8 Dátum: 2012. március 11. - 19:27:02 »
0 Show voters
Idézetet írta: leito222 date=1331490372\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18326\" data-ipsquote-contentclass=\"forums_Topic
Az nem lehet, hogy az 5111-es Dialogod id-d már van? Próbáld átírni azt, mondjuk 5222-re, és úgy az összes többit.
 
Nem

Nem reagál, dialog
« Válasz #9 Dátum: 2012. március 11. - 19:32:53 »
0 Show voters
Próbáld így, hátha jó:
[pawn]if(dialogid == 8898)
{
   if(response)
   {
      if(listitem == 0)
      {
SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
}
if(listitem == 1)
{
SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
}
}
[/pawn]
Ha nemjó, akkor bocs + ha sor hiba van akkor is bocs + ha egy }-el kevesebb akkor is bocs :D

Nem elérhető nyE

  • 1745
    • Profil megtekintése
Nem reagál, dialog
« Válasz #10 Dátum: 2012. március 11. - 19:34:27 »
0 Show voters
public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
    if(dialogid == 5111)
    {
        if(response)
        {
    switch(listitem)
    {
        case 0:
{
     SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
   }
case 1:
{
            SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
        }
            }
        }
        return 1;
    }
    return 0;
}

Nem elérhető The

  • 4384
    • Profil megtekintése
Nem reagál, dialog
« Válasz #11 Dátum: 2012. március 11. - 19:34:52 »
0 Show voters
Idézetet írta: leito222 date=1331490773\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18326\" data-ipsquote-contentclass=\"forums_Topic
Próbáld így, hátha jó:
 
if(dialogid == 8898)
{
if(response)
{
   if(listitem == 0)
   {
SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
}
if(listitem == 1)
{
SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
}
}
 

 
Ha nemjó, akkor bocs + ha sor hiba van akkor is bocs + ha egy }-el kevesebb akkor is bocs :D
 
Mondom, hogy nem dialogid hiba. Nem is használ a szerver 1 dialogot se!!

Nem reagál, dialog
« Válasz #12 Dátum: 2012. március 11. - 19:36:31 »
0 Show voters
Daviid, tudom, csak a /dm-zones dialogomat másoltam be, csak elfelejtettem átírni a dialogid-t a tiédre, de próbáld meg átírni a sajátodra, hátha jó úgy.

Nem elérhető The

  • 4384
    • Profil megtekintése
Nem reagál, dialog
« Válasz #13 Dátum: 2012. március 11. - 19:38:17 »
0 Show voters
Idézetet írta: Antonyo date=1331490867\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18326\" data-ipsquote-contentclass=\"forums_Topic

public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
    if(dialogid == 5111)
    {
        if(response)
        {
    switch(listitem)
    {
        case 0:
{
     SetPlayerPos(playerid, 1535.5732,-1675.6609,13.3828);
   }
case 1:
{
            SetPlayerPos(playerid, 1729.6116,-1855.1116,13.4141);
        }
            }
        }
        return 1;
    }
    return 0;
}

 

Nem jó és amúgy is ezt írja valamiért:
SERVER: Unknown command.
De behozza a dialogot. Mostmár feladom, mert elbasztam vele másfél órát és már kikészített.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal