dialog response not happening?
#9

So i did that and i found out that nothing really happens when u press those buttons. I removed the bizz thing and replaced directly with the bizz id imma leave here what i did:
PHP код:
if(dialogid == 169)
{
    if(
response)
    {
        
SendClientMessage(playeridCOLOR_RED"test");
        new 
TCarModel carroapresentar[playerid];
        
escolhacombustivel[playerid] = 1;
        new 
valorveiculo TCarModel-400;
        new 
precoveiculo VehiclePrices[valorveiculo][0];
        if(
listitem == 0)
        {
            
tipocombustivel[playerid] = 1;
            
SendClientMessage(playeridCOLOR_RED"op1");
        }
        if(
listitem == 1)
        {
            
tipocombustivel[playerid] = 2;
            
SendClientMessage(playeridCOLOR_RED"op2");
            
precoveiculo *= 0.9;
        }
        
SendClientMessage(playeridCOLOR_RED"test999");
            for(new 
c=0;c<MAX_VEHICLES;c++)
            {
                if(
DynamicCars[c][comprado] != 0) continue;
                
SendClientMessage(playeridCOLOR_RED"test5");
                if(
DynamicCars[c][valor] != 0) continue;
                
SendClientMessage(playeridCOLOR_RED"test6");
                if(
DynamicCars[c][buy] != 1) continue;
                
SendClientMessage(playeridCOLOR_RED"test7");
                if(
DynamicCars[c][CarModel] != 481) continue;
                
SendClientMessage(playeridCOLOR_RED"test8");
                if(!
IsValidModel(TCarModel))
                    return 
SendClientMessage(playeridCOLOR_RED,"{FF0000}[Erro]: {FFFFFF}Modelo Invбlido.");
                
SendClientMessage(playeridCOLOR_GREY"========================================================================================================");
                
SendClientMessage(playeridCOLOR_WHITE"Compraste o veiculo com sucesso. Este aparecerб na marinha de Palomino Creek em 10 horas ingame");
                
SendClientMessage(playeridCOLOR_GREY"========================================================================================================");
                
SetTimerEx("buyvehtime"2000false"iii"playeridTCarModelc);
                if(
PlayerInfo[playerid][pVipActive] != 0)
                {
                    
GivePlayerEuros(playerid, -precoveiculo/2);
                    
Businesses[1][Products]=Businesses[1][Products]-(precoveiculo/2/100);
                       
Businesses[1][Till]+=precoveiculo;
                    
OnPlayerDataSave(playerid);
                }
                else
                {
                    
GivePlayerEuros(playerid, -precoveiculo);
                    
Businesses[1][Products]=Businesses[1][Products]-(precoveiculo/100);
                       
Businesses[1][Till]+=precoveiculo;
                }
                if(
PlayerInfo[playerid][pChave1] == 255)
                {
                       
PlayerInfo[playerid][pChave1] = c+1;
                      return 
1;
                }
                else if(
PlayerInfo[playerid][pChave2] == 255)
                {
                      
PlayerInfo[playerid][pChave2] = c+1;
                    return 
1;
                }
                else if(
PlayerInfo[playerid][pChave3] == 255)
                {
                    
PlayerInfo[playerid][pChave3] = c+1;
                    return 
1;
                }
                else if(
PlayerInfo[playerid][pChave4] == 255)
                {
                    
PlayerInfo[playerid][pChave4] = c+1;
                    return 
1;
                }
                else if(
PlayerInfo[playerid][pChave5] == 255)
                {
                    
PlayerInfo[playerid][pChave5] = c+1;
                      return 
1;
                }
                else if(
PlayerInfo[playerid][pChave6] == 255)
                {
                   
PlayerInfo[playerid][pChave6] = c+1;
                   return 
1;
                }
            }
            return 
1;
    }

From all those sendclientmessage only the first one works. Why is the script returning after the response?
Reply


Messages In This Thread
dialog response not happening? - by GunZsmd - 14.05.2016, 16:33
Re: dialog response not happening? - by GunZsmd - 14.05.2016, 18:39
Re: dialog response not happening? - by Skimmer - 14.05.2016, 19:15
Re: dialog response not happening? - by GunZsmd - 14.05.2016, 20:07
Re: dialog response not happening? - by GunZsmd - 14.05.2016, 22:45
Re: dialog response not happening? - by Mic_H - 15.05.2016, 06:23
Re: dialog response not happening? - by GunZsmd - 15.05.2016, 07:04
Re: dialog response not happening? - by Sew_Sumi - 15.05.2016, 08:26
Re: dialog response not happening? - by GunZsmd - 15.05.2016, 09:15
Re: dialog response not happening? - by Sew_Sumi - 15.05.2016, 09:45

Forum Jump:


Users browsing this thread: 1 Guest(s)