[Ajuda] Destruir carros
#9

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
O comando que eu te mostrei deleta os veнculos, que forem criados pelo comando /cv, eu entro em um veiculo, e do /destruirveiculo ele vai verificar se o veiculo foi criado pelo comando cv.
Em questгo dos erro eu esqueci de retornar a verdadeiro o comando.
Coloque no topo do GM:
pawn Код:
new PlayerCv[500];
pawn Код:
if(strcmp(cmd, "/destruircarro", true) == 0)
{
    for(new i=0; i<500; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerCv[i] == 1)
            {
                if(GetPlayerVehicleID(playerid) == CarPlayerID[i])
                {
                    DestroyVehicle(GetPlayerVehicleID(playerid));
                    PlayerCv[i] = 0;
                    CarPlayerID[i] = 0;
                }
                else
                {
                    SendClientMessage(playerid, -1, "Vocк nгo estб em um veнculo criado pelo comando /cv");
                }
            }
        }
    }
    return 1;
}
Deu erro man =|


Quote:

C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(804) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(806) : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(819) : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(832) : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(845) : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(85 : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(870) : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(883) : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(896) : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(910) : error 055: start of function body without function header
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(923) : error 010: invalid function or declaration
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(3101) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(3114) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(3930) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(3930) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(3931) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(3933) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(589 : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(589 : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(589 : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(589 : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(589 : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(589 : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(589 : warning 202: number of arguments does not match definition
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(13800) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(13824) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(13837) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14639) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14645) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14649) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14675) : warning 217: loose indentation
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14681) : error 017: undefined symbol "PlayerCv"
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14681) : warning 215: expression has no effect
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14681) : error 001: expected token: ";", but found "]"
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14681) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Downloads\PARTE 1\GM\GM\gamemodes\BVR.pwn(14681) : fatal error 107: too many error messages on one line

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


15 Errors.

Reply


Messages In This Thread
Destruir carros - by logan1910 - 23.06.2014, 17:56
Re: [AJUDA]Destruir carros - by MultiKill - 23.06.2014, 19:04
Re: [AJUDA]Destruir carros - by logan1910 - 23.06.2014, 19:16
Re: [AJUDA]Destruir carros - by TioSlash - 23.06.2014, 19:19
Re: [AJUDA]Destruir carros - by logan1910 - 23.06.2014, 19:22
Re: [AJUDA]Destruir carros - by MultiKill - 23.06.2014, 19:32
Re: [AJUDA]Destruir carros - by logan1910 - 23.06.2014, 19:36
Re: [AJUDA]Destruir carros - by MultiKill - 23.06.2014, 19:38
Re: [AJUDA]Destruir carros - by logan1910 - 24.06.2014, 02:38
Re: [AJUDA]Destruir carros - by MultiKill - 24.06.2014, 02:50

Forum Jump:


Users browsing this thread: 1 Guest(s)