[Ajuda] Erros em compilar pawn
#1

pawn Код:
PPC_Defines.inc(268) : error 018: initialization data exceeds declared size
PPC_DefLocations.inc(2) : error 001: expected token: "}", but found "enum"

Linha 268 do Defines:
pawn Код:
new ATimedMessages[][128] =
{
    {TXT_TimedRefuel},
    {TXT_TimedConvoy},
    {TXT_TimedGohome},
    {TXT_TimedRentCar},
    {TXT_TimedLicense},
    {TXT_TimedSpeedTraps}, <<<<< Linha 268
    {TXT_TimedGoBusiness}
};
Linha 2 do PPC_DefLocations
pawn Код:
enum TLocation<<<<<<< Linha 2
{
    LocationName[50], // The name of the location
    Float:LocX, // The X-position of the location
    Float:LocY, // The Y-position of the location
    Float:LocZ // The Z-position of the location
}

E Se puder ajuda a tirar estes warnings que й dб linha 10 atй o 67
pawn Код:
TextDrawBackgroundColor(SpeedometerText, 255);
    TextDrawFont(SpeedometerText, 1);
    TextDrawLetterSize(SpeedometerText, 0.519999, 1.700000);
    TextDrawColor(SpeedometerText, 16711935);
    TextDrawSetOutline(SpeedometerText, 0);
    TextDrawSetProportional(SpeedometerText, 1);
    TextDrawSetShadow(SpeedometerText, 1);

    APlayerData[playerid][FuelGauge] = TextDrawCreate(495.000000, 322.000000, "Gasolina :");
    TextDrawBackgroundColor(FuelGauge, 255);
    TextDrawFont(FuelGauge, 1);
    TextDrawLetterSize(FuelGauge, 0.500000, 1.899999);
    TextDrawColor(FuelGauge, 16711935);
    TextDrawSetOutline(FuelGauge, 0);
    TextDrawSetProportional(FuelGauge, 1);
    TextDrawSetShadow(FuelGauge, 1);

    APlayerData[playerid][Barra1] = TextDrawCreate(680.000000, 350.000000, "New Textdraw");
    TextDrawBackgroundColor(Barra1, 255);
    TextDrawFont(Barra1, 1);
    TextDrawLetterSize(Barra1, 0.500000, 1.000000);
    TextDrawColor(Barra1, -1);
    TextDrawSetOutline(Barra1, 0);
    TextDrawSetProportional(Barra1, 1);
    TextDrawSetShadow(Barra1, 1);
    TextDrawUseBox(Barra1, 1);
    TextDrawBoxColor(Barra1, 255);
    TextDrawTextSize(Barra1, 472.000000, 8.000000);

    APlayerData[playerid][Barra2] = TextDrawCreate(680.000000, 255.000000, "New Textdraw");
    TextDrawBackgroundColor(Barra2, 255);
    TextDrawFont(Barra2, 1);
    TextDrawLetterSize(Barra2, 0.500000, 1.000000);
    TextDrawColor(Barra2, -1);
    TextDrawSetOutline(Barra2, 0);
    TextDrawSetProportional(Barra2, 1);
    TextDrawSetShadow(Barra2, 1);
    TextDrawUseBox(Barra2, 1);
    TextDrawBoxColor(Barra2, 255);
    TextDrawTextSize(Barra2, 471.000000, 9.000000);

    APlayerData[playerid][Frase1] = TextDrawCreate(480.000000, 256.000000, "Guia Caminhoneiro");
    TextDrawBackgroundColor(Frase1, -16776961);
    TextDrawFont(Frase1, 1);
    TextDrawLetterSize(Frase1, 0.500000, 1.400000);
    TextDrawColor(Frase1, -1);
    TextDrawSetOutline(Frase1, 0);
    TextDrawSetProportional(Frase1, 1);
    TextDrawSetShadow(Frase1, 1);

    APlayerData[playerid][Latariaaa] = TextDrawCreate(495.000000, 298.000000, "Lataria :");
    TextDrawBackgroundColor(Latariaaa, 255);
    TextDrawFont(Latariaaa, 1);
    TextDrawLetterSize(Latariaaa, 0.500000, 1.899999);
    TextDrawColor(Latariaaa, 16711935);
    TextDrawSetOutline(Latariaaa, 0);
    TextDrawSetProportional(Latariaaa, 1);
    TextDrawSetShadow(Latariaaa, 1);
Quando eu coloquei meu velocнmetro deu os seguintes warnings,e o Velocнmetro nгo funciona direito.

pawn Код:
PPC_Speedometer.inc(10) : warning 213: tag mismatch
PPC_Speedometer.inc(11) : warning 213: tag mismatch
PPC_Speedometer.inc(12) : warning 213: tag mismatch

ATЙ A LINHA:

PPC_Speedometer.inc(66) : warning 213: tag mismatch
PPC_Speedometer.inc(67) : warning 213: tag mismatch
Ajuda ae,pf.
Reply
#2

Tenta assim:
pawn Код:
new ATimedMessages[][] =
{
    {TXT_TimedRefuel},
    {TXT_TimedConvoy},
    {TXT_TimedGohome},
    {TXT_TimedRentCar},
    {TXT_TimedLicense},
    {TXT_TimedSpeedTraps},
    {TXT_TimedGoBusiness}
};
pawn Код:
enum TLocation
{
    LocationName[50], // The name of the location
    Float:LocX, // The X-position of the location
    Float:LocY, // The Y-position of the location
    Float:LocZ // The Z-position of the location
};
Reply
#3

O Pawno Parou de funcionar..
Reply
#4

Eu acabei conseguindo arrumar o do new ATimedMessages[][128] =

Era sу colocar na vez de 128, 256(new ATimedMessages[][256] =

Agora ajuda no outro ??
Reply
#5

Sobre o Tag Mistach deve ser que vocк esta definindo a txd errada, como assim? Tipo, vocк cria uma txd global mas estб definindo ela como para o player.

Verifique isso.
Reply
#6

Jб sei como resolver agora,vlw

Tem como ajudar no erro nгo do "Enum"?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)