Szerző Téma: List Dialog hiba  (Megtekintve 775 alkalommal)

List Dialog hiba
« Dátum: 2012. Március 03. - 22:45:42 »
+1 Show voters
Szisztok ezzel mi a baj??
 
 ShowPlayerDialog(playerid, sDialog, DIALOG_STYLE_LIST, \"Rendõr Skinek:\", \"Rendõr Skin 1\\nRendõr Skin 2\\nRendõr Skin 3\\nRendõr Skin 4\\nRendõr Skin 5\", \"Választ\", \"Mégse\");

 
[pawn]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == sDialog)
{
   if(response)
   {
      if(listitem == 0)
      {
      SetPlayerSkin(playerid, 281);
      }
      if(listitem == 1)
      {
      SetPlayerSkin(playerid, 280);
      }
      if(listitem == 2)
      {
      SetPlayerSkin(playerid, 282);
      }
      if(listitem == 3)
      {
      SetPlayerSkin(playerid, 283);
      }
      if(listitem == 4)
      {
      SetPlayerSkin(playerid, 284);
      }
   }
   return 1;
}[/pawn]
Nem erroros de nem csinálja a dolgát..

List Dialog hiba
« Válasz #1 Dátum: 2012. Március 03. - 23:43:01 »
0 Show voters
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 
 
if(dialogid == sDialog)
{
if(response)
{
   if(listitem == 0)
   {
   SetPlayerSkin(playerid, 281);
   }
   if(listitem == 1)
   {
   SetPlayerSkin(playerid, 280);
   }
   if(listitem == 2)
   {
   SetPlayerSkin(playerid, 282);
   }
   if(listitem == 3)
   {
   SetPlayerSkin(playerid, 283);
   }
   if(listitem == 4)
   {
   SetPlayerSkin(playerid, 284);
   }
}
                }
return 0;
}

List Dialog hiba
« Válasz #2 Dátum: 2012. Március 03. - 23:51:01 »
+1 Show voters
Nem vátja át a skint :S

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
List Dialog hiba
« Válasz #3 Dátum: 2012. Március 04. - 07:00:09 »
0 Show voters
Így próbáld meg:
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 
 
if(dialogid == sDialog)
{
if(response)
{
   if(listitem == 1)
   {
   SetPlayerSkin(playerid, 281);
   }
   if(listitem == 2)
   {
   SetPlayerSkin(playerid, 280);
   }
   if(listitem == 3)
   {
   SetPlayerSkin(playerid, 282);
   }
   if(listitem == 4)
   {
   SetPlayerSkin(playerid, 283);
   }
   if(listitem == 5)
   {
   SetPlayerSkin(playerid, 284);
   }
}
}
        return 1;
}
« Utoljára szerkesztve: 2012. Március 04. - 07:05:11 írta Gabor.. »

List Dialog hiba
« Válasz #4 Dátum: 2012. Március 04. - 07:44:41 »
+1 Show voters
de az a 0 érték az  elején befolyásolt valamit? az volt a baj?

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
List Dialog hiba
« Válasz #5 Dátum: 2012. Március 04. - 07:50:14 »
0 Show voters
Igen, én erre gyanakszom.

Koncz_Norbert

  • Vendég
List Dialog hiba
« Válasz #6 Dátum: 2012. Március 04. - 07:53:15 »
0 Show voters

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case sDialog:
        {
            if ( !response ) return SendClientMessage( playerid, 0xFFFFFFFF, \"...\");
            switch( listitem )
            {
                case 0: { SetPlayerSkin( playerid, 281 ); }
                case 1: { SetPlayerSkin( playerid, 280 ); }
                case 2: { SetPlayerSkin( playerid, 282 ); }
                case 3: { SetPlayerSkin( playerid, 283 ); }
case 4: {    SetPlayerSkin( playerid, 284 ); }
            }
        }
    }
    return 1;
}
« Utoljára szerkesztve: 2012. Március 04. - 07:56:54 írta Koncz_Norbert »

Nem elérhető nyE

  • 1745
    • Profil megtekintése
List Dialog hiba
« Válasz #7 Dátum: 2012. Március 04. - 07:56:18 »
0 Show voters
Idézetet írta: Gabor.. date=1330843814\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"17956\" data-ipsquote-contentclass=\"forums_Topic
Igen, én erre gyanakszom.
 
A 0 az az elsõ lenne a dialogban.

public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
    if(dialogid == sDialog)
    {
        if(response)
{
    if(listitem == 0)
    {
                SetPlayerSkin(playerid, 281);
    }
    if(listitem == 1)
    {
        SetPlayerSkin(playerid, 280);
    }
    if(listitem == 2)
    {
        SetPlayerSkin(playerid, 282);
    }
    if(listitem == 3)
    {
SetPlayerSkin(playerid, 283);
    }
    if(listitem == 4)
    {
        SetPlayerSkin(playerid, 284);
    }
        }
        return 1;
    }
    return 0;
}

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
List Dialog hiba
« Válasz #8 Dátum: 2012. Március 04. - 07:57:42 »
0 Show voters
Hát igaz, de nekem van egy olyan dialógom, ahol 1 az elsõ, és ugyanúgy megy.

List Dialog hiba
« Válasz #9 Dátum: 2012. Március 04. - 07:58:36 »
+1 Show voters
De én megcsináltam csak nem váltja át a skint hibátlan is :S

Dupla hozzászólás automatikusan összefûzve. ( 2012. Március 04. - 08:08:42 )

Nem akar mûködni
talán a dialoggal van baj???
[pawn]ShowPlayerDialog(playerid,sDialog,DIALOG_STYLE_LIST, \"Rendõr Skinek:\", \"Rendõr Skin 1\\nRendõr Skin 2\\nRendõr Skin 3\\nRendõr Skin 4\\nRendõr Skin 5\", \"Választ\", \"\");[/pawn]
« Utoljára szerkesztve: 2012. Március 04. - 08:08:58 írta Szabyxxx »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal