SA-MP Forums Archive
[Ajuda] /trancar DP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] /trancar DP (/showthread.php?tid=374628)



/trancar DP - felipe_mr - 03.09.2012

Ola preciso de uma pequena ajuda para editar ou arrumar esse cуdigo nгo sei porque nгo esta funcionando, lembrando que e baixado da net e tentei colocar no meu GM o sistema e de arrombar DP mas esta dando esse erro olhem:

pawn Код:
C:\Documents and Settings\familia mr\Desktop\'\TunningLife\gamemodes\BTLl.pwn(11721) : error 028: invalid subscript (not an array or too many subscripts): "trancouportadp"
C:\Documents and Settings\familia mr\Desktop\'\TunningLife\gamemodes\BTLl.pwn(11721) : warning 215: expression has no effect
C:\Documents and Settings\familia mr\Desktop\'\TunningLife\gamemodes\BTLl.pwn(11721) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\familia mr\Desktop\'\TunningLife\gamemodes\BTLl.pwn(11721) : error 029: invalid expression, assumed zero
C:\Documents and Settings\familia mr\Desktop\'\TunningLife\gamemodes\BTLl.pwn(11721) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Ajudem PF


Re: /trancar DP - @Riichard - 03.09.2012

Irйн ver a bola de cristal.


Re: /trancar DP - Coreia - 03.09.2012

Procura a linha do erro e min passa


Re: /trancar DP - felipe_mr - 03.09.2012

O cуdigo e o que se encontra no meio
pawn Код:
if(HireCar[playerid] > 0)
    {
        VTrancado[HireCar[playerid]] = 0;
        UnLockCar(HireCar[playerid]);
        SetVehicleToRespawn(HireCar[playerid]);
        HireCar[playerid] = 0;
    }
    if(trancouportadp[playerid] == 1)
    {
        trancarportadp = 0;
    }
    if (PlayerInfo[playerid][pBarraca] != 0)
    {
        RemoveBarraca(playerid);
    }



Re: /trancar DP - matheus280 - 03.09.2012

pawn Код:
if(HireCar[playerid] > 0);
    {
        VTrancado(HireCar[playerid]) == 0;
        UnLockCar(HireCar[playerid]);
        SetVehicleToRespawn(HireCar[playerid]);
        HireCar[playerid] = 0;
    }
    if(trancouportadp[playerid] == 1);
    {
        trancarportadp = 0;
    }
    if (PlayerInfo[playerid][pBarraca] != 0);
    {
        RemoveBarraca(playerid);
    }
tenta isso


Re: /trancar DP - LeLeTe - 03.09.2012

O erro estб porquк o trancarportadp do meio estб sem o indentificador da array.

Tente isso:
pawn Код:
if(trancouportadp[playerid] == 1);
    {
        trancarportadp[playerid] = 0;
    }
espero ter ajudado.