[Ajuda]Erro ao Compilar
#1

Erro:
pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19780) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19798) : error 017: undefined symbol "vPRFLock"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19809) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19831) : error 017: undefined symbol "vPRFLock"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Linha:
pawn Код:
if(strcmp(cmd, "/apreendercarro", true) == 0)
   {
        if(IsPlayerConnected(playerid))
        {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USO: /apreendercarro [carid]");
            return 1;
        }
        if(PlayerInfo[playerid][pMembro] != 1 || PlayerInfo[playerid][pLider] != 1)
        {
                SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб autorizado a usar este comando.");
                return 1;
        }
        else
        {
            new carid = strval(tmp);
            CarInfo[carid][vPRFLock] = 1;
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
               SetVehicleParamsForPlayer(carid, i, 0, 1);
            }
            SendClientMessage(playerid, COLOR_WHITE, "[Info] Veнculo apreendido.");
        }
        }
        return 1;
    }
   
    if(strcmp(cmd, "/liberarcarro", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USO: /liberarcarro [carid]");
            return 1;
        }
        if(PlayerInfo[playerid][pMembro] != 1 || PlayerInfo[playerid][pLider] != 1)
        {
                SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб autorizado a usar este comando.");
                return 1;
        }
        else
        {
            new carid = strval(tmp);
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
               SetVehicleParamsForPlayer(carid, i, 0, 0);
            }
            CarInfo[carid][vPRFLock] = 0;
            SendClientMessage(playerid, COLOR_WHITE, "[Info] Veнculo liberado.");
        }
        }
        return 1;
    }
Reply


Messages In This Thread
[Ajuda]Erro ao Compilar - by mutante_br - 24.12.2011, 19:12
Re: [Ajuda]Erro ao Compilar - by Victor Cesaroni - 24.12.2011, 19:25
Re: [Ajuda]Erro ao Compilar - by mutante_br - 24.12.2011, 19:27
Re: [Ajuda]Erro ao Compilar - by Victor Cesaroni - 24.12.2011, 19:28
Re: [Ajuda]Erro ao Compilar - by mutante_br - 24.12.2011, 19:29
Re: [Ajuda]Erro ao Compilar - by mutante_br - 24.12.2011, 19:32
Re: [Ajuda]Erro ao Compilar - by Victor Cesaroni - 24.12.2011, 19:32
Re: [Ajuda]Erro ao Compilar - by mutante_br - 24.12.2011, 19:35
Re: [Ajuda]Erro ao Compilar - by Sampizito - 24.12.2011, 19:58
Re: [Ajuda]Erro ao Compilar - by mutante_br - 24.12.2011, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)