[AJUDA] Sistema Auto Tunar Bugado
#1

Sistema totalmente bugado ele compila sem warnings/erros mais na hora de tunar o veiculo naum tuna n muda nada no veiculo me ajude porfavo

PHP код:
// =============================================================================
#include <a_samp>
#define Dialog 1000
new car;
// =============================================================================
public OnFilterScriptInit()
{
    print(
"FilterScript Auto Tunar By: Pegador");
    return 
1;
}
// =============================================================================
public OnFilterScriptExit()
{
    print(
"FilterScript Desligado");
    return 
1;
}
// =============================================================================
public OnPlayerConnect(playerid)
{
    return 
1;
}
// =============================================================================
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/autotunar"cmdtexttrue10) == 0)
    {
if(!
IsPlayerInAnyVehicle(playerid)){
    
SendClientMessage(playerid,-1,"[INFO] Voce nao esta em um carro.");
    return 
1;
}
ShowPlayerDialog(playerid1000DIALOG_STYLE_LIST"=-= Auto Tunar =-=""Auto Tunar 1\nAuto Tunar 2\nAuto Tunar 3\nAuto Tunar 4""Selecionar""Cancelar");
return 
1;
}
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 1000)
    {
        if(!
response)
            return 
true;
        else
        {
            switch (
listitem)
            {
                case 
0:
                {
                    new 
string[3000];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(car,1046);
                    
AddVehicleComponent(car,1171);
                    
AddVehicleComponent(car,1149);
                    
AddVehicleComponent(car,1035);
                    
AddVehicleComponent(car,1147);
                    
AddVehicleComponent(car,1036);
                    
AddVehicleComponent(car,1040);
                    
ChangeVehiclePaintjob(car1);
                    
PutPlayerInVehicle(playeridcar0);
                }
                case 
1:
                {
                    new 
string[3000];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(car,1046);
                    
AddVehicleComponent(car,1171);
                    
AddVehicleComponent(car,1149);
                    
AddVehicleComponent(car,1035);
                    
AddVehicleComponent(car,1147);
                    
AddVehicleComponent(car,1036);
                    
AddVehicleComponent(car,1040);
                    
ChangeVehiclePaintjob(car2);
                    
PutPlayerInVehicle(playeridcar0);
                }
                case 
2:
                {
                    new 
string[3000];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(car,1046);
                    
AddVehicleComponent(car,1171);
                    
AddVehicleComponent(car,1149);
                    
AddVehicleComponent(car,1035);
                    
AddVehicleComponent(car,1147);
                    
AddVehicleComponent(car,1036);
                    
AddVehicleComponent(car,1040);
                    
ChangeVehiclePaintjob(car3);
                    
PutPlayerInVehicle(playeridcar0);
                }
                case 
3:
                {
                    new 
string[3000];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(car,1046);
                    
AddVehicleComponent(car,1171);
                    
AddVehicleComponent(car,1149);
                    
AddVehicleComponent(car,1035);
                    
AddVehicleComponent(car,1147);
                    
AddVehicleComponent(car,1036);
                    
AddVehicleComponent(car,1040);
                    
ChangeVehiclePaintjob(car4);
                    
PutPlayerInVehicle(playeridcar0);
                }
            }
        }
        return 
1;
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)