[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
#2

Coloca na enum do CarInfo vPRFLock.

pawn Код:
//exemplo
enum cInfo
{
    trancado,
    destrancado,
    vPRFLock // <<
}
new CarInfo[MAX_VEHICLES][cInfo];
// Siga esse exemplo, mas lembre-se que vocк poderб ter de mudar as vбriaveis
Reply
#3

coloquei isso deu varios erros:
pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 017: undefined symbol "carid"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 009: invalid array size (negative, zero or out of bounds)
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(1681) : error 021: symbol already defined: "CarInfo"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8601) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(12692) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(14150) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(17306) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
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"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29415) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45153) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45183) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45221) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45415) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45451) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Reply
#4

Quote:
Originally Posted by Mata_Noob
Посмотреть сообщение
Topo do GM:
pawn Код:
new CarInfo[carid][vPRFLock] ;
Isso sу gerarб erros =\
Reply
#5

Quote:
Originally Posted by Victor Cesaroni
Посмотреть сообщение
Coloca na enum do CarInfo vPRFLock.

pawn Код:
//exemplo
enum cInfo
{
    trancado,
    destrancado,
    vPRFLock // <<
}
new CarInfo[MAX_VEHICLES][cInfo];

// Siga esse exemplo
coloquei o teu: deu erro:

pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(1664) : warning 201: redefinition of constant/macro (symbol "cInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(1687) : error 021: symbol already defined: "CarInfo"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8610) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8612) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8616) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8620) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8624) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8626) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8632) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8634) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(12700) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(12701) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(14158) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(14161) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(17318) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(17320) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(17321) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19786) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19815) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29310) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29311) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29317) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29318) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29321) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29423) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29435) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29442) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29446) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29449) : error 032: array index out of bounds (variable "CarInfo")

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#6

eu fiz aqui ai deu erro:

pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 017: undefined symbol "OInfo"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 009: invalid array size (negative, zero or out of bounds)
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(1684) : error 021: symbol already defined: "CarInfo"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19783) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19801) : warning 213: tag mismatch
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19812) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19834) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply
#7

Quote:
Originally Posted by mutante_br
Посмотреть сообщение
coloquei o teu: deu erro:

pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(1664) : warning 201: redefinition of constant/macro (symbol "cInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(1687) : error 021: symbol already defined: "CarInfo"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8610) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8612) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8616) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8620) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8624) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8626) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8632) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8634) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(12700) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(12701) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(14158) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(14161) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(17318) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(17320) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(17321) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19786) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19815) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29310) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29311) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29317) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29318) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29321) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29423) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29435) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29442) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29446) : error 032: array index out of bounds (variable "CarInfo")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29449) : error 032: array index out of bounds (variable "CarInfo")

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Coloca na sua enum, aquele й sу um exemplo.
Reply
#8

coloquei, mais ainda deu erro:

pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 017: undefined symbol "cInfo"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 009: invalid array size (negative, zero or out of bounds)
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(1684) : error 021: symbol already defined: "CarInfo"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19783) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19812) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply
#9

pawn Код:
new CarInfo[carid][vPRFLock]; //topo do GM  o ; й junto
Reply
#10

Quote:
Originally Posted by Sampizito
Посмотреть сообщение
pawn Код:
new CarInfo[carid][vPRFLock]; //topo do GM  o ; й junto
eu coloquei mais:
deu erro:
pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 017: undefined symbol "carid"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 009: invalid array size (negative, zero or out of bounds)
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(8603) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(12694) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(14152) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(17308) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19782) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19811) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(29417) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45155) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45185) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45223) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45417) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45453) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Antes tava dando esse erro:
pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 017: undefined symbol "cInfo"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(45) : error 009: invalid array size (negative, zero or out of bounds)
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19782) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19811) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)