[Duda]; Diбlogos
#4



Код:
C:\Users\Alv\Desktop\Iv\gamemodes\L.pwn(16262) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
En la linea 16262;

Код:
else
Код:
switch(dialogid) // NOTA: recuerda tener esto
{
    case DLOGIN:
    {
        if(response == 1)
        {
            switch(listitem) // NOTA: te falto el case para este switch
            {
                case 0:
                {
                    if(udb_hash(inputtext) == Info[playerid][pKey])
                    {
                        InsideMainMenu[playerid] = false;
                        INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
                        PlayerLogin(playerid);
                    }
                    else
                    {
                        new ip[32];
                        new titlestring[64];
                        GetPlayerIp(playerid, ip, 32);
                        format(titlestring, sizeof(titlestring), "{00C3EA}» Iniciar sesiуn {F0F0F0}%s", GetPlayerNameEx(playerid));
                        format(string, sizeof(string), "{F0F0F0}Direcciуn IP: {00C3EA}%s\n{FFFFFF} Bienvenido al servidor ingrese su {00C3EA}contraseсa{FFFFFF} para conectarse a nuestro servidor.\n {00C3EA}Foro: {FFFFFF}sa-mp.com\n {00C3EA}TS3: sa-mp.com", ip);
                        SafeDialogEx(playerid,DLOGIN,DIALOG_STYLE_INPUT ,titlestring,string,"Entrar","Salir");
                        SetPlayerVirtualWorld(playerid, 20);
                        //return 1; NOTA:  esto no es necesario, coloca return 0; en OnDialogResponse
                    }
                }
            }
            else //Aquн es la linea del error
            {
                SendClientMessageEx(playerid, VERDEI, "{FFFFFF}Error de conexiуn.");
                Kick(playerid);
            }
        } // NOTA: aca esta el error, te falta cerrar el response
        //return 1; NOTA:  esto no es necesario, coloca return 0; en OnDialogResponse
    }
}
Reply


Messages In This Thread
[Duda]; Diбlogos - by Jake_Taoka - 30.08.2016, 19:33
Respuesta: [Duda]; Diбlogos - by adri1 - 30.08.2016, 23:20
Respuesta: [Duda]; Diбlogos - by OTACON - 31.08.2016, 11:10
Re: [Duda]; Diбlogos - by Jake_Taoka - 31.08.2016, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)