[Ajuda] erro no case 0:
#1

Olб internautas

Quote:

D:\Users\ZЈU\Desktop\Nova pasta\filterscripts\Untitled.pwn(333) : error 014: invalid statement; not in switch
D:\Users\ZЈU\Desktop\Nova pasta\filterscripts\Untitled.pwn(333) : warning 215: expression has no effect
D:\Users\ZЈU\Desktop\Nova pasta\filterscripts\Untitled.pwn(333) : error 001: expected token: ";", but found ":"
D:\Users\ZЈU\Desktop\Nova pasta\filterscripts\Untitled.pwn(333) : error 029: invalid expression, assumed zero
D:\Users\ZЈU\Desktop\Nova pasta\filterscripts\Untitled.pwn(333) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

pawn Code:
case 0:  //Estб й a linha (333)
Cуdigo completo :
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

    if(dialogid == ALUGUE)
    {
        if(response)
        {
        case 0:
            if(GePlayerMoney(playerid) < 370) return SendClientMessage(playerid,COLOR_AZULCLARO,"| HOTEL | Vocк nгo tem R$370 para alugar!");
            if(GetPVarInt(playerid,"Sono") >= 75) return SendClientMessage(playerid,COLOR_AZULCLARO,"| SONO | Vocк nгo esta com sono!");
            SetPlayerPos(playerid, 2246.4041,-1164.5934,1030.4943);
            SetPlayerPos(playerid, 2252.9849,-1158.8644,1030.4410);
            SetPlayerPos(playerid, 2236.0242,-1154.6893,1030.4943);
            SetPlayerPos(playerid, 2229.6047,-1160.9651,1030.4410);
            SetPlayerPos(playerid, 2235.9683,-1165.5596,1030.4943);
            SetPlayerPos(playerid, 2230.5610,-1183.3994,1030.5249);
            SetPlayerPos(playerid, 2224.5496,-1176.9550,1030.4384);
            SetPlayerPos(playerid, 2204.6062,-1193.9602,1030.5249);
            SetPlayerPos(playerid, 2210.6392,-1200.2861,1030.4384);
            SetPlayerPos(playerid, 2230.8987,-1183.3547,1030.5249);
            SetPlayerPos(playerid, 2224.0601,-1176.9796,1030.4384);
            SetPlayerPos(playerid, 2198.2258,-1178.0868,1030.4943);
            SetPlayerPos(playerid, 2204.8206,-1171.5645,1030.4410);
            SetPlayerPos(playerid, 2187.9077,-1151.9406,1030.4943);
            SetPlayerPos(playerid, 2181.5906,-1158.4785,1030.4410);
            SetPlayerPos(playerid, 2217.3391,-1146.4551,1025.7969);
            SendClientMessage(playerid,COLOR_AZULCLARO, "| HOTEL | Vб para a cama e digite --> /Durmir");
            GivePlayerMoney(playerid, -370);

     }
        else
        {
            SendClientMessage(playerid,COLOR_AZULCLARO, "| HOTEL | Vocк optou por nгo alugar.");
        }
    }
    return 0;
}
Bom, o que estou tentando fazer й criar um DIalog para o player alugar um quarto no Hotel . Quando ele aluga ele serб teleportado a um dos quartos (SetPlayerPos) . Mais quando eu tiro o
pawn Code:
case 0:
ele pede o
pawn Code:
case 0:
e fica dando os erros que citei acima .
Reply


Messages In This Thread
erro no case 0: - by Alwe - 17.06.2014, 12:52
Re: erro no case 0: - by PT - 17.06.2014, 13:07
Re: erro no case 0: - by Alwe - 17.06.2014, 13:11
Re: erro no case 0: - by Dolby - 17.06.2014, 13:14
Re: erro no case 0: - by Alwe - 17.06.2014, 13:16
Re: erro no case 0: - by Kimossab - 17.06.2014, 13:21
Re: erro no case 0: - by Alwe - 17.06.2014, 13:25
Re: erro no case 0: - by PT - 17.06.2014, 13:46
Re: erro no case 0: - by Kimossab - 17.06.2014, 13:47
Re: erro no case 0: - by Alwe - 17.06.2014, 13:48

Forum Jump:


Users browsing this thread: 5 Guest(s)