[Ajuda] Erros porque ?
#3

PHP код:
public Autocruise(playeridin)
{
    new 
Float:vehx,
        
Float:vehy,
        
Float:vehz;
    
GetVehiclePos(GetPlayerVehicleID(playerid), vehxvehyvehz);
    if(
in == 1)
    {
        if(-
1777 vehy)
        {
            for(new 
0<= MAX_PLAYERSi++)
            {
                if(
GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
                {
                    
SetPlayerCameraPos(i,1910.4637,-1771.8,15);SetPlayerCameraLookAt(i,1911.2863,-1775.1614,13.3828);
                }
            }
            
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
            
TogglePlayerControllable(playerid0);
            
MoveObject(PortaoEntrada1911.21130371, -1780.6815185514.159722331);
            
SetTimerEx("AguaLava",4000,0,"ii",playerid1);
        }
        else
        {
            if(
vehx != 1911.1886)
            {
                
SetVehiclePos(GetPlayerVehicleID(playerid), 1911.1886vehyvehz);
                
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
            }
            
TogglePlayerControllable(playerid1);
            
SetVehicleVelocity(GetPlayerVehicleID(playerid), 00.10);
            
SetTimerEx("Autocruise",100,0,"ii",playerid1);
        }
    }
    else
    {
        if(-
1768 vehy)
        {
            
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
            
TogglePlayerControllable(playerid0);
            
MoveObject(PortaoSaida1911.21130371,-1771.97814941,14.159722331);
            
SetTimerEx("EndWash",1000,0,"i",playerid);
        }
        else
        {
            if(
vehx != 1911.1886)
            {
                
SetVehiclePos(GetPlayerVehicleID(playerid), 1911.1886vehyvehz);
                
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
            }
TogglePlayerControllable(playerid1);
            
SetVehicleVelocity(GetPlayerVehicleID(playerid), 00.10);
            
SetTimerEx("Autocruise",100,0,"ii",playerid0);
        }
    }
    return 
true;
}
public 
AguaLava(playeridon)
{
    if(
on == 0)
    {
        for(new 
0<= MAX_PLAYERSi++)
        {
            if(
GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
            {
                
DestroyPlayerObject(iAguaLava1);
                
DestroyPlayerObject(iAguaLava2);
                
DestroyPlayerObject(iAguaLava3);
                
DestroyPlayerObject(iAguaLava4);
                
DestroyPlayerObject(iAguaLava5);
                
DestroyPlayerObject(iAguaLava6);
                
DestroyPlayerObject(iAguaLava7);
                
RepairVehicle(GetPlayerVehicleID(playerid));
                
SetTimerEx("AbrirSaida",500,0,"i",playerid);
            }
        }
    }
    else
    {
        for(new 
0<= MAX_PLAYERSi++)
        {
            if(
GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
            {
                
AguaLava1 CreatePlayerObject(i187471911, -1776100090);
                
AguaLava2 CreatePlayerObject(i187471914, -1776100090);
                
AguaLava3 CreatePlayerObject(i187391910.1821, -1777.89972501800);
                
AguaLava4 CreatePlayerObject(i187391910.1821, -1774.81322501800);
                
AguaLava5 CreatePlayerObject(i187391912.1490, -1774.81322501800);
                
AguaLava6 CreatePlayerObject(i187391912.1490, -1777.89972501800);
                
AguaLava7 CreatePlayerObject(i187391911.2194, -1776.51172501800);
                
SetTimerEx("AguaLava",15000,0,"ii",playerid0);
            }
        }
    }
    return 
true;
}
public 
AbrirSaida(playerid)
{
    for(new 
0<= MAX_PLAYERSi++)
    {
        if(
GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
        {
            
SetPlayerCameraPos(i,1909.0697,-1760.7429,15);
            
SetPlayerCameraLookAt(i,1911.2600,-1771.5955,13.3828);
        }
    }
    
MoveObject(PortaoSaida1911.21130371, -1771.9781494110.500000001);
    
SetTimerEx("Autocruise",3500,0,"ii",playerid0);
    return 
true;
}
public 
EndWash(playerid)
{
    for(new 
0<= MAX_PLAYERSi++)
    {
        if(
GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
        {
            
TogglePlayerControllable(i1);
            
SetCameraBehindPlayer(i);
            }
        }
        
usandolavacarro = -1;
        
Update3DTextLabelText(textoentradaCOR_3DLABEL"Ninguйm estб usando o Lava Rбpido agora, o preзo й de R$ 20,00\n(/lavarcarro)");
        return 
true;
    } 
Pf ajudem-me
Reply


Messages In This Thread
Erros porque ? - by felipe_mr - 19.10.2012, 02:02
Re: Erros porque ? - by Viiih - 19.10.2012, 15:51
Re: Erros porque ? - by felipe_mr - 20.10.2012, 03:27
Re: Erros porque ? - by Maklister - 20.10.2012, 03:35
Re: Erros porque ? - by felipe_mr - 20.10.2012, 03:44
Re: Erros porque ? - by felipe_mr - 20.10.2012, 04:06

Forum Jump:


Users browsing this thread: 1 Guest(s)