Help Me Compiler Erros and Warnings
#1

Lines

pawn Код:
PPC_Defines.inc(268) : error 018: initialization data exceeds declared size

PPC_DefLocations.inc(2) : error 001: expected token: "}", but found "enum"

PPC_Speedometer.inc(10) : warning 213: tag mismatch

PPC_Speedometer.inc(11) : warning 213: tag mismatch

To the line: 67  Warnings

\PPC_Speedometer.inc(66) : warning 213: tag mismatch

\PPC_Speedometer.inc(67) : warning 213: tag mismatch

\PPC_PlayerCommands.inc(844) : warning 202: number of arguments does not match definition
\PPC_PlayerCommands.inc(1477) : warning 204: symbol is assigned a value that is never used: "MsgAll"

\PPC_PlayerCommands.inc(1601 -- 1603) : error 001: expected token: ",", but found "-identifier-"

\PPC_PlayerCommands.inc(1622) : warning 204: symbol is assigned a value that is never used: "MsgAll"

\PPC_PlayerCommands.inc(3679) : error 035: argument type mismatch (argument 2)

\PPC_PlayerCommands.inc(3730) : error 035: argument type mismatch (argument 2)

\PPC_PlayerCommands.inc(4975) : error 001: expected token: ";", but found "-identifier-"

\PPC_PlayerCommands.inc(4982) : warning 202: number of arguments does not match definition

GC.pwn(570) : error 029: invalid expression, assumed zero
GC.pwn(570) : error 004: function "OnPlayerClickPlayer" is not implemented

GC.pwn(579) : error 017: undefined symbol "clickedplayerid"

GC.pwn(583) : error 017: undefined symbol "clickedplayerid"

GC.pwn(586) : error 017: undefined symbol "clickedplayerid"

GC.pwn(588) : error 017: undefined symbol "clickedplayerid"

GC.pwn(599) : error 017: undefined symbol "clickedplayerid"

GC.pwn(600) : error 017: undefined symbol "clickedplayerid"

GC.pwn(602) : error 017: undefined symbol "clickedplayerid"

GC.pwn(604) : error 017: undefined symbol "clickedplayerid"

GC.pwn(609) : error 017: undefined symbol "clickedplayerid"

GC.pwn(614) : error 017: undefined symbol "clickedplayerid"

GC.pwn(615) : error 017: undefined symbol "clickedplayerid"

GC.pwn(616) : error 017: undefined symbol "clickedplayerid"

GC.pwn(617) : error 017: undefined symbol "clickedplayerid"

GC.pwn(618) : error 017: undefined symbol "clickedplayerid"

GC.pwn(619) : error 017: undefined symbol "clickedplayerid"


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


26 Errors.
Line 268 PPC_defines = TXT_TimedSpeedTraps
pawn Код:
new ATimedMessages[][128] =
{
    {TXT_TimedRefuel},
    {TXT_TimedConvoy},
    {TXT_TimedGohome},
    {TXT_TimedRentCar},
    {TXT_TimedLicense},
    {TXT_TimedSpeedTraps},
    {TXT_TimedGoBusiness}
};
Line 2 of PPC_DefLoads
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
}
Line of 10 a 67 (warnings) of PPC_Speedometer
pawn Код:
// Setup the speedometer for the player
    APlayerData[playerid][SpeedometerText] = TextDrawCreate(495.000000, 277.000000, "KMh :");
    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);
lines 3679 of the PPC_PlayerCommands
pawn Код:
SendClientMessageToAll(playerid, 0xFFFFFFFF, MsgAll);
                    // Save the player-stats
                    PlayerFile_Save(OtherPlayer);
lines 3730 of the PPC_PlayerCommands
pawn Код:
SendClientMessageToAll(playerid, 0xFFFFFFFF, MsgAll);
                    // Save the player-stats
                    PlayerFile_Save(OtherPlayer);
                }
Line 4975 of the PPC_PlayerCommands
pawn Код:
CMD:abastecertodos(playerid, params[])
{
    new AdminName[24]
    GetPlayerName(playerid, AdminName, sizeof(AdminName));
    if(APlayerData[playerid][LoggedIn] == false)
Line 570 a 620 of the Gamemode(GC)
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    // Check if the player is an admin of at least level 1
    if (APlayerData[playerid][PlayerLevel] >= 1)
    {
        // Setup local variables
        new Name[24], DialogTitle[128], PlayerStatList[3000], PlayerIP[16], NumHouses, NumBusinesses;

        // Construct the dialog-title
        GetPlayerName(clickedplayerid, Name, sizeof(Name));
        format(DialogTitle, 128, "Status do Jogador: %s", Name);

        // Add the IP of the player to the list
        GetPlayerIp(clickedplayerid, PlayerIP, sizeof(PlayerIP));
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}IP: {00FF00}%s\n", PlayerStatList, PlayerIP);
        // Add the level of the player to the list
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Admin-level: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][PlayerLevel]);
        // Add the class of the player to the list
        switch(APlayerData[clickedplayerid][PlayerClass])
        {
            case ClassTruckDriver: format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Classe: {00FF00}Caminhoneiro\n", PlayerStatList);
            case ClassBusDriver: format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Classe: {00FF00}Motorista de Фnibus\n", PlayerStatList);
            case ClassPilot: format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Classe: {00FF00}Piloto\n", PlayerStatList);
            case ClassPolice: format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Classe: {00FF00}Policia\n", PlayerStatList);
            case ClassMafia: format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Classe: {00FF00}Mafioso\n", PlayerStatList);
            case ClassCourier: format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Classe: {00FF00}Carteiro\n", PlayerStatList);
            case ClassAssistance: format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Classe: {00FF00}Mecanico\n", PlayerStatList);
        }
        // Add money and score of the player to the list
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Dinheiro: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][PlayerMoney]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Level: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][PlayerScore]);
        // Add wanted-level of the player to the list
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Estrelas: {00FF00}%i\n", PlayerStatList, GetPlayerWantedLevel(clickedplayerid));
        // Add truckerlicense and busdriver license of the player to the list
        if (APlayerData[clickedplayerid][TruckerLicense] == 1)
            format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Licenca Caminhoneira: {00FF00}Yes\n", PlayerStatList);
        else
            format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Licenca Caminhoneira: {00FF00}No\n", PlayerStatList);

        if (APlayerData[clickedplayerid][BusLicense] == 1)
            format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Licenca de Motorista: {00FF00}Yes\n", PlayerStatList);
        else
            format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Licenca de Motorista: {00FF00}No\n", PlayerStatList);

        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Trabalhos Caminhoneiros Completados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsTruckerJobs]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Comboios Completados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsConvoyJobs]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Trabalhos de Motorista de Onibus Completados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsBusDriverJobs]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Trabalhos de Piloto Completados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsPilotJobs]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Trabalhos de Mafioso Completados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsMafiaJobs]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Cargas Roubadas Pela Mafia: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsMafiaStolen]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Jogadores Multados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsPoliceFined]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Jogadores Presos: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsPoliceJailed]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Trabalhos de Carteiro Completados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsCourierJobs]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Trabalhos de Operario Completados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsRoadworkerJobs]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}Veiculos Reparados: {00FF00}%i\n", PlayerStatList, APlayerData[clickedplayerid][StatsAssistance]);
        format(PlayerStatList, sizeof(PlayerStatList), "%s{FFFFFF}KM Ja rodado: {00FF00}%f\n", PlayerStatList, APlayerData[clickedplayerid][StatsMetersDriven]);


Sorry my bad english, I am a Brazilian.
Reply
#2

Dude you tried to edit the script?
26 errors bug again -.-
It only appears if you post invalid/unreadable code
Reply
#3

It was not exactly edit, tried to add things
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)