[Ajuda] Erros porque ?
#1

Ola a todos estou aqui pedindo sua ajuda para implantar o lava rapido do brasil mega life estava colocando mas estб dando uns erros olhem oque significa ??

PHP код:
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(48915) : warning 217: loose indentation
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50259) : warning 217: loose indentation
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50259) : error 029: invalid expression, assumed zero
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50259) : error 004: function "Autocruise" is not implemented
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50265) : error 017: undefined symbol "in"
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50315) : warning 225: unreachable code
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50315) : error 029: invalid expression, assumed zero
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50315) : error 004: function "AguaLava" is not implemented
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50317) : error 017: undefined symbol "on"
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50354) : warning 225: unreachable code
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50354) : error 029: invalid expression, assumed zero
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50354) : error 004: function "AbrirSaida" is not implemented
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50368) : warning 225: unreachable code
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50368) : error 029: invalid expression, assumed zero
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50368) : error 004: function "EndWash" is not implemented
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50382) : warning 225: unreachable code
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(50382) : warning 217: loose indentation
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
10 Errors. 
Reply
#2

Bola de cristal a gente nгo tem. Poste o cуdigo.
Reply
#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
#4

Erros: loose indentation » Mб identaзгo no Code, Use TAB

Os outros erros й que falta as forwards em Seu GameMode, Adcione no topo

PHP код:

// No Topo

forward Autocruise(playeridin);
forward AguaLava(playeridon);
forward AbrirSaida(playerid);
forward EndWash(playerid); 
Reply
#5

tem coloquei junto com essas:
PHP код:
new NomeCarro[128];
forward RecriarObjeto();
forward DestruirObjeto(objid);
forward CriarExplosao(Float:X,Float:Y,Float:Z,tipo,Float:diam);
forward NRouco(playerid);
forward NFlood(playerid);
forward NSemAn(playerid);
forward Velocimetro();
forward Autocruise(playeridin);
forward AbrirSaida(playerid);
forward EndWash(playerid);
forward AguaLava(playeridon); 
Reply
#6

ainda esta dando o erro alguйm me ajuda ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)