[Ajuda] Erros
#1

Estou quebrando a cabeзa pra resolver esses erros ._.'
Mais nгo consegui, Sei que deveria tentar,tentar ate resolver mais estou ficando nervoso jб...

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if( !strcmp( cmdtext, "/curas", true ))
    {
        ShowPlayerDialog(playerid, 7954, DIALOG_STYLE_LIST, "Hospital Sгo Magno","Cura - 30% - Preзo: R$500\nCura - 50% - Preзo: R$700\nCura - 80% - Preзo: R$800\nCura - 100% - Preзo: R$1000","Comprar","Fechar");
        return 1;
    }
       
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])]
{
    if(dialogid == 7954)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerHealth(playerid, 30.0);
                GivePlayerMoney(playerid, -500);
                SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 30% de life, Portando vocк se recuperou!" );
                return true;
            }
            if(listitem == 1)
            {
                SetPlayerHealth(playerid, 50.0);
                GivePlayerMoney(playerid, -700);
                SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 50% de life, Portando vocк se recuperou!" );
                return true;
            }
            if(listitem == 2)
            {
                SetPlayerHealth(playerid, 80.0);
                GivePlayerMoney(playerid, -800);
                SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 80% de life, Portando vocк se recuperou!" );
                return true;
            }
            if(listitem == 3)
            {
                SetPlayerHealth(playerid, 100.0);
                GivePlayerMoney(playerid, -1000);
                SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 100% de life, Portando vocк se recuperou!" );
                return true;
            }
            return true;
        }
        return true;
    }
    return true;
}
Erros:

pawn Код:
C:\Users\--------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : warning 217: loose indentation
C:\Users\-------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : error 029: invalid expression, assumed zero
C:\Users\--------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : error 004: function "OnDialogResponse" is not implemented
C:\Users\--------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : error 029: invalid expression, assumed zero
C:\Users\---------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Falta 1 chave,


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if( !strcmp( cmdtext, "/curas", true ))
    {
        ShowPlayerDialog(playerid, 7954, DIALOG_STYLE_LIST, "Hospital Sгo Magno","Cura - 30% - Preзo: R$500\nCura - 50% - Preзo: R$700\nCura - 80% - Preзo: R$800\nCura - 100% - Preзo: R$1000","Comprar","Fechar");
        return 1;
    }
    return 0;
}
Reply
#3

pawn Код:
filterscripts\Hospital.pwn(132) : error 029: invalid expression, assumed zero
filterscripts\Hospital.pwn(134) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(136) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(138) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(143) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(145) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(150) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(152) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(157) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(159) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(164) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(166) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(168) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(170) : error 010: invalid function or declaration
filterscripts\Hospital.pwn(172) : warning 203: symbol is never used: "Macas"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if( !strcmp( cmdtext, "/curas", true ))
    {
        ShowPlayerDialog(playerid, 7954, DIALOG_STYLE_LIST, "Hospital Sгo Magno","Cura - 30% - Preзo: R$500\nCura - 50% - Preзo: R$700\nCura - 80% - Preзo: R$800\nCura - 100% - Preзo: R$1000","Comprar","Fechar");
        return 1;
    }
    return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 7954)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerHealth(playerid, 30.0);
                GivePlayerMoney(playerid, -500);
                SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 30% de life, Portando vocк se recuperou!" );
                return true;
            }
            if(listitem == 1)
            {
                SetPlayerHealth(playerid, 50.0);
                GivePlayerMoney(playerid, -700);
                SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 50% de life, Portando vocк se recuperou!" );
                return true;
            }
            if(listitem == 2)
            {
                SetPlayerHealth(playerid, 80.0);
                GivePlayerMoney(playerid, -800);
                SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 80% de life, Portando vocк se recuperou!" );
                return true;
            }
            if(listitem == 3)
            {
                SetPlayerHealth(playerid, 100.0);
                GivePlayerMoney(playerid, -1000);
                SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 100% de life, Portando vocк se recuperou!" );
                return true;
            }
        }
    }
    return true;
}
Reply
#5

Admiro pessoas como vocк rбpidas e diabуlicas em resolver erros
+REP
Reply
#6

Estamos aн na atividade
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)