[AJUDA]Erros Dialog
#1



Erros:
pawn Код:
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3123) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3125) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3127) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3131) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3135) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3139) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3143) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3147) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3151) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3155) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3159) : error 010: invalid function or declaration
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(3163) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.

Linhas:

pawn Код:
if(dialogid == 66)
    {
        if(response)
        {
            if(listitem == 0)
            {
            ShowPlayerDialog(playerid,66,DIALOG_STYLE_LIST,"Cores Veiculos","1\tAzul\n2\tPreto\n3\tRosa\n4\tVermelho\n5\tVerde\n6\tAzulClaro\n7\tBranco\n8\tDourado","Selecionar","Cancelar");
            }
            else if(listitem == 1)
            {
            ChangeVehicleColor(GetPlayerVehicleID(playerid), 147, 147);
            }
            else if(listitem == 2)
            {
            ChangeVehicleColor(GetPlayerVehicleID(playerid), 0, 0);
            }
            else if(listitem == 3)
            {
            ChangeVehicleColor(GetPlayerVehicleID(playerid), 183, 183);
            }
            else if(listitem == 4)
            {
            ChangeVehicleColor(GetPlayerVehicleID(playerid), 166, 166);
            }
            else if(listitem == 5)
            {
            ChangeVehicleColor(GetPlayerVehicleID(playerid), 145, 145);
            }
            else if(listitem == 6)
            {
            ChangeVehicleColor(GetPlayerVehicleID(playerid), 130, 130);
            }
            else if(listitem == 7)
            {
            ChangeVehicleColor(GetPlayerVehicleID(playerid), 1, 1);
            }
            else if(listitem == 8)
            {
            ChangeVehicleColor(GetPlayerVehicleID(playerid), 6, 6);
    }
    return 1;
}
Reply
#2

PHP код:
if(dialogid == 66)
{
    if(
response)
     {
          if(
listitem == 0)
        {
            
ShowPlayerDialog(playerid,66,DIALOG_STYLE_LIST,"Cores Veiculos","1\tAzul\n2\tPreto\n3\tRosa\n4\tVermelho\n5\tVerde\n6\tAzulClaro\n7\tBranco\n8\tDourado","Selecionar","Cancelar");
        }
        else if(
listitem == 1)
        {
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), 147147);
        }
        else if(
listitem == 2)
        {
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), 00);
        }
        else if(
listitem == 3)
        {
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), 183183);
        }
        else if(
listitem == 4)
        {
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), 166166);
        }
        else if(
listitem == 5)
        {
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), 145145);
        }
        else if(
listitem == 6)
        {
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), 130130);
        }
        else if(
listitem == 7)
        {
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), 11);
        }
        else if(
listitem == 8)
         {
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), 66);
        }
    }
    return 
1;

Reply
#3

mesma coissa :S
Reply
#4

1 dos jeitos, e ta estranho se vc clicar em Azul, vai voltar no dialog, mais se vc clicar no preto pra baixo, funfa.
PHP код:
    if(dialogid == 66)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
ShowPlayerDialog(playerid,66,DIALOG_STYLE_LIST,"Cores Veiculos","1 Azul\n2 Preto\n3 Rosa\n4 Vermelho\n5 Verde\n6 AzulClaro\n7 Branco\n8 Dourado","Selecionar","Cancelar");
            }
            if(
listitem == 1)
            {
                
ChangeVehicleColor(GetPlayerVehicleID(playerid), 147147);
            }
            if(
listitem == 2)
            {
                
ChangeVehicleColor(GetPlayerVehicleID(playerid), 00);
            }
            if(
listitem == 3)
            {
                
ChangeVehicleColor(GetPlayerVehicleID(playerid), 183183);
            }
            if(
listitem == 4)
            {
                
ChangeVehicleColor(GetPlayerVehicleID(playerid), 166166);
            }
            if(
listitem == 5)
            {
                
ChangeVehicleColor(GetPlayerVehicleID(playerid), 145145);
            }
            if(
listitem == 6)
            {
                
ChangeVehicleColor(GetPlayerVehicleID(playerid), 130130);
            }
            if(
listitem == 7)
            {
                
ChangeVehicleColor(GetPlayerVehicleID(playerid), 11);
            }
            if(
listitem == 8)
            {
                
ChangeVehicleColor(GetPlayerVehicleID(playerid), 66);
            }
        }
    } 
Reply
#5

Tem certeza que o Dialog ta na Public, OnDialogResponse?
Reply
#6

correзгo, creio que tu queira fazer um list tou corrigindo aqui
pawn Код:
// bota isso aqui lб onde vocк quer que abra...
ShowPlayerDialog(playerid,66,DIALOG_STYLE_LIST,"Cores Veiculos","1\tAzul\n2\tPreto\n3\tRosa\n4\tVermelho\n5\tVerde\n6\tAzulClaro\n7\tBranco\n8\tDourado","Selecionar","Cancelar");
// e isso aqui tu bota no public OnDialogResponse
    if(response)
    {
        switch(dialogid == 66)
        {
                case 1:
            {
            if(listitem)
            {
                case 0:
                {
                    ChangeVehicleColor(GetPlayerVehicleID(playerid), 147, 147);
                }
                case 1:
                {
                    ChangeVehicleColor(GetPlayerVehicleID(playerid), 0, 0);
                }
                case 2:
                {
                    ChangeVehicleColor(GetPlayerVehicleID(playerid), 183, 183);
                }
                case 3:
                {
                    ChangeVehicleColor(GetPlayerVehicleID(playerid), 166, 166);
                }
                case 4:
                {
                    ChangeVehicleColor(GetPlayerVehicleID(playerid), 145, 145);
                }
                case 5:
                {
                    ChangeVehicleColor(GetPlayerVehicleID(playerid), 130, 130);
                }
                case 6:
                {
                    ChangeVehicleColor(GetPlayerVehicleID(playerid), 1, 1);
                }
                case 7:
                {
                    ChangeVehicleColor(GetPlayerVehicleID(playerid), 6, 6);
                    return 1;
                }
            }
        }
    }
Reply
#7

Obrigado Consegui Tinha Errrado Um Negocio. Vlw a Todos.
Reply
#8

*-* disponha
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)