[Problema con comando] Me sale muchos errores del else en el juego
#3

pawn Код:
if(!strcmp(cmdtext, "/comando", true)) //
  {
    if(IsPlayerConnected(playerid))
    {
      for(new i = 0; i < sizeof(HouseInfo); i++)
      {
        if(PlayerInfo[playerid][pLocal] == 255)
        {
            SendClientMessage(playerid, COLOR_GREY, "  No estбs en ninguna casa ! ");
            return 1;
        }
            if(HouseInfo[i][hLock] != 1)
            {
                    new gunname1[128];
                    GetWeaponName(HouseInfo[i][hCajon1], gunname1, sizeof(gunname1));
                    new gunname2[128];
                    GetWeaponName(HouseInfo[i][hCajon2], gunname2, sizeof(gunname2));
                    new gunname3[128];
                    GetWeaponName(HouseInfo[i][hCajon3], gunname3, sizeof(gunname3));
                    new gunname4[128];
                    GetWeaponName(HouseInfo[i][hCajon4], gunname4, sizeof(gunname4));
                    new s[128];
                    format(s,sizeof(s),"(Texto de mi comando (PRIVADO) )",(variables).);
                        ShowPlayerDialog(playerid,5,DIALOG_STYLE_LIST,"----",s,"Coger","Cancelar");
                    }
                    else
                    {
                    SendClientMessage(playerid, COLOR_WHITE, " La casa estб cerrada con llave, por lo tanto el armario tambiйn!");
                    }
                }
            }
    }
    return 1;
  }
Prueva hasi
Reply


Messages In This Thread
[Problema con comando] Me sale muchos errores del else en el juego - by wasoski - 22.05.2010, 09:52
Re: [Problema con comando] Me sale muchos errores del else en el juego - by Dws - 22.05.2010, 10:19
Re: [Problema con comando] Me sale muchos errores del else en el juego - by Lautaro_eb - 22.05.2010, 14:11

Forum Jump:


Users browsing this thread: 3 Guest(s)