Pawno Not Loading in my includes.
#1

I have allot of includes:

pawn Код:
#include "../include/core/core.inc"
#include "../include/core/anticheat.inc"

#include "../include/interiors/include.inc"
#include "../include/interiors/ammunations.inc"

#include "../include/teams/core.inc"
#include "../include/teams/eparadio.inc"

#include "../include/database/connectSQL.inc"
#include "../include/database/accounts.inc"
#include "../include/database/bankaccounts.inc"

#include "../include/core/zones.inc"
#include "../include/core/skinitems.inc"
#include "../include/core/criminal.inc"

#include "../include/vehicles/core.inc"
#include "../include/vehicles/information.inc"
#include "../include/vehicles/advancedVehicles.inc"
#include "../include/vehicles/advancedTrucks.inc"
#include "../include/vehicles/ELM.inc"
#include "../include/vehicles/vehiclePreview.inc"
#include "../include/vehicles/loadDatabaseVehicles.inc"

#include "../include/mapping/core.inc"

#include "../include/other/worldCameras.inc"
#include "../include/other/cityCameras.inc"
#include "../include/other/worldTollBooths.inc"
#include "../include/other/controlDoors.inc"

#include "../include/teams/policeExtras.inc"

#include "../include/other/test.inc"
#include "../include/other/cell.inc"
#include "../include/other/editattach.inc"

#define POSITION_NONE       0
#define POSITION_DRIVER     1
#define POSITION_PASSENGER  2

#include "../include/minimissions/taxi.inc"
In advancedTrucks.inc the following functions exist, but when I compile, it says they are missing.

If I put the contents of advancedTrucks.inc into advancedVehicles.inc it compiles correctly.

pawn Код:
C:\...\gamemodes\grimrandomerRoleplay.pwn(118) : error 017: undefined symbol "advtr_init"
C:\...\gamemodes\grimrandomerRoleplay.pwn(194) : error 017: undefined symbol "advtr_PlayerConnect"
C:\...\gamemodes\grimrandomerRoleplay.pwn(295) : error 017: undefined symbol "advtr_PlayerDisconnect"
C:\...\gamemodes\grimrandomerRoleplay.pwn(534) : error 017: undefined symbol "advtr_PlayerCommandText"
C:\...\gamemodes\grimrandomerRoleplay.pwn(943) : error 017: undefined symbol "advtr_PlayerEnterDynamicRaceCP"
C:\...\gamemodes\grimrandomerRoleplay.pwn(1228) : error 017: undefined symbol "advtr_PlayerStateChange"
C:\...\gamemodes\grimrandomerRoleplay.pwn(1499) : error 017: undefined symbol "advtr_DialogResponse"
C:\...\gamemodes\grimrandomerRoleplay.pwn(1538) : error 017: undefined symbol "advtr_VehicleTrailerUpdate"
Any help appreciated, Thanks.
Grim
Reply
#2

Ahh, I think i get it, so its:

#include "../include/core/core.inc"
#include "../include/teams/core.inc"
#include "../include/vehicles/core.inc"
#include "../include/mapping/core.inc"

Is the issue, and

#include "../include/core/core_core.inc"
#include "../include/teams/teams_core.inc"
#include "../include/vehicles/vehicles_core.inc"
#include "../include/mapping/mapping_core.inc"

Would fix it?

EDIT:
Did not fix it
Reply
#3

The strange bit, is when i put the code for my includes in another include, it compiles, but as a seperate include it fails.
Reply
#4

Nope, I did not make them static.

EDIT:

Example function:
pawn Код:
stock advtr_PlayerStateChange(playerid, newstate, oldstate) {
    if(oldstate == PLAYER_STATE_DRIVER && newstate != PLAYER_STATE_DRIVER) {//Out Vehicle (Jacked OR Manualy)
        if (advtr_players[playerid][advtr_stage] > -1 ) {
            if (advtr_players[playerid][advtr_outVehicle] == 0 ){
                advtr_players[playerid][advtr_outVehicle] = 1;
                SendClientMessage(playerid,0xFFFFFFFF,advtr_RETURNVEHICLE);
                advtr_players[playerid][advtr_exitWarnTimer] = SetTimerEx("advtr_outcarlimit", 60000, false, "i", playerid);
            }
        }
    }
    else if(oldstate != PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_DRIVER) { //In Vehicle
        new vehicleid = GetPlayerVehicleID(playerid);
        if (advtr_players[playerid][advtr_stage] > -1 ) {
            if (advtr_players[playerid][advtr_outVehicle] == 1) {
                if (advtr_players[playerid][advtr_vehicleid] == vehicleid) {
                    advtr_players[playerid][advtr_outVehicle] = 0;
                    KillTimer(advtr_players[playerid][advtr_exitWarnTimer]);
                    SendClientMessage(playerid,0xFFFFFFFF,advtr_WELCOMEVEHICLE);
                }
                else {SendClientMessage(playerid,0xFFFFFFFF,advtr_NOTVEHICLE);}
            }
        }
    }
    return 1;
}
Reply
#5

Did You Try To Open Pawno As Administrator From The Pawno Folder And Compile??
Reply
#6

Quote:
Originally Posted by James_Nick
Посмотреть сообщение
Did You Try To Open Pawno As Administrator From The Pawno Folder And Compile??
Yes, Sadly that did not work
Reply
#7

Solved, File names where too long.

I think they have to be less than 31 in length.

pawn Код:
#include "../include/core/core.inc"
#include "../include/core/anticheat.inc"

#include "../include/inter/inters.inc"
#include "../include/inter/ammu.inc"

#include "../include/teams/teams.inc"
#include "../include/teams/eparadio.inc"

#include "../include/db/conSQL.inc"
#include "../include/db/accs.inc"
#include "../include/db/bankacc.inc"

#include "../include/core/zones.inc"
#include "../include/core/skinitems.inc"
#include "../include/core/criminal.inc"

#include "../include/veh/veh.inc"
#include "../include/veh/info.inc"
#include "../include/veh/vehPrev.inc"
#include "../include/veh/advVehs.inc"
#include "../include/veh/advTrucks.inc"
#include "../include/veh/ELM.inc"

#include "../include/veh/loadDBVehs.inc"

#include "../include/mapping/mapping.inc"

#include "../include/other/wrldCams.inc"
#include "../include/other/cityCams.inc"
#include "../include/other/wrldTBths.inc"
#include "../include/other/ctrlDoors.inc"

#include "../include/teams/policeExt.inc"

#include "../include/other/test.inc"
#include "../include/other/cell.inc"
#include "../include/other/editattach.inc"

#define POSITION_NONE       0
#define POSITION_DRIVER     1
#define POSITION_PASSENGER  2

#include "../include/mms/taxi.inc"
That fixed it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)