Error Dialog
#2

Look at this screenshot from your code. The { } are highlighted with red



You put an extra } there, your code should be:

PHP код:
if (dialogid == Menu_Vip)
{
    if (
response == 0)
    {
        return 
true;
    }
    switch (
listitem)
    {
        case 
0:
        {
            
cmd_comprarcash(playerid);
        }
        case 
1:
        {
            if (
JogadorInfo[playerid][pCoins] < 5)
            {
                
SendClientMessage(playeridCOR_ADMIN"{7CFC00}ERRO: {D3D3D3}Vocк nгo Tem 5 de Cash");
            }
            else
            {
                
JogadorInfo[playerid][pVIP] = 1;
                
SendClientMessage(playerid0x00FF00FF"{7CFC00}[ Menu Vip ]: {D3D3D3}Vocк Comprou VIP Bronze por 5 de Cash");
                
JogadorInfo[playerid][pCoins] -= 5;
                
AtualizarCash(playerid);
            }
        }
        case 
2:
        {
            if (
JogadorInfo[playerid][pCoins] < 10)
            {
                
SendClientMessage(playeridCOR_ADMIN"{7CFC00}ERRO: {D3D3D3}Vocк nгo Tem 10 de Cash");
            }
            else
            {
                
JogadorInfo[playerid][pVIP] = 2;
                
SendClientMessage(playerid0x00FF00FF"{7CFC00}[ Menu Vip ]: {D3D3D3}Vocк Comprou VIP PRATA por 10 de Cash");
                
JogadorInfo[playerid][pCoins] -= 10;
                
AtualizarCash(playerid);
            }
        }
        case 
3:
        {
            if (
JogadorInfo[playerid][pCoins] < 12)
            {
                
SendClientMessage(playeridCOR_ADMIN"{7CFC00}ERRO: {D3D3D3}Vocк nгo Tem 12 de Cash");
            }
            else
            {
                
JogadorInfo[playerid][pVIP] = 3;
                
SendClientMessage(playerid0x00FF00FF"{7CFC00}[ Menu Vip ]: {D3D3D3}Vocк Comprou VIP OURO por 12 de Cash");
                
JogadorInfo[playerid][pCoins] -= 15;
                
AtualizarCash(playerid);
            }
        }
        case 
4:
        {
            if (
JogadorInfo[playerid][pCoins] < 15)
            {
                
SendClientMessage(playeridCOR_ADMIN"{7CFC00}ERRO: {D3D3D3}Vocк nгo Tem 15 Cash");
            }
            else
            {
                
JogadorInfo[playerid][pSocio] = 1;
                
SendClientMessage(playerid0x00FF00FF"{7CFC00}[ Menu Vip ]: {D3D3D3}Vocк Comprou Socio Bronze Por 15 de Cash");
                
JogadorInfo[playerid][pCoins] -= 15;
                
AtualizarCash(playerid);
            }
        }
        case 
5:
        {
            if (
JogadorInfo[playerid][pCoins] < 20)
            {
                
SendClientMessage(playeridCOR_ADMIN"{7CFC00}ERRO: {D3D3D3}Vocк Nгo Tem 20 de Cash");
            }
            else
            {
                
JogadorInfo[playerid][pSocio] = 2;
                
SendClientMessage(playerid0x00FF00FF"{7CFC00}[ Menu Vip ]: {D3D3D3}Vocк Comprou Socio Prata Por 20 de Cash");
                
JogadorInfo[playerid][pCoins] -= 20;
                
AtualizarCash(playerid);
            }
        }
        case 
6:
        {
            if (
JogadorInfo[playerid][pCoins] < 25)
            {
                
SendClientMessage(playeridCOR_ADMIN"{7CFC00}ERRO: {D3D3D3}Vocк Nгo Tem 25 de Cash");
            }
            else
            {
                
JogadorInfo[playerid][pSocio] = 3;
                
SendClientMessage(playerid0x00FF00FF"{7CFC00}[ Menu Vip ]: {D3D3D3}Vocк Comprou Socio Ouro Por 30 de Cash");
                
JogadorInfo[playerid][pCoins] -= 25;
                
AtualizarCash(playerid);
            }
        }
    }

Reply


Messages In This Thread
Error Dialog - by leobpo - 18.05.2018, 17:42
Re: Error Dialog - by Vennox - 19.05.2018, 01:03
Re: Error Dialog - by leobpo - 19.05.2018, 02:52

Forum Jump:


Users browsing this thread: 1 Guest(s)