Include problem?
#7

Okay, this warning is fixed, but now i've got several errors:

pawn Код:
C:\...testinc.inc(4) : error 017: undefined symbol "missionName"
C:\...testinc.inc(4) : warning 215: expression has no effect
C:\...testinc.inc(6) : error 017: undefined symbol "teamSkin"
C:\...testinc.inc(6) : warning 215: expression has no effect
C:\...testinc.inc(6) : error 001: expected token: ";", but found "]"
C:\...testinc.inc(6) : error 029: invalid expression, assumed zero
C:\...testinc.inc(6) : fatal error 107: too many error messages on one line
Include (testinc.inc):

pawn Код:
forward OnGameMissionStart();
public OnGameMissionStart()
{
    missionName = "Lolz"; // line 4

    teamSkin[0] = 29; // line 6
    teamSkin[1] = 280;

    teamSpawn[0][0] = 1361.3763;
    teamSpawn[0][1] = -1651.0247;
    teamSpawn[0][2] = 13.3828;
    teamSpawn[0][3] = 276.9998;

    teamSpawn[1][0] = 1580.1824;
    teamSpawn[1][1] = -1635.0011;
    teamSpawn[1][2] = 13.5612;
    teamSpawn[1][3] = 96.8315;

    teamWeapon[0][0] = 5;
    teamWeapon[0][1] = 24;
    teamWeapon[0][2] = 30;

    teamWeapon[1][0] = 3;
    teamWeapon[1][1] = 24;
    teamWeapon[1][2] = 31;

    teamWeaponAmmo[0][1] = 1;
    teamWeaponAmmo[0][2] = 250;
    teamWeaponAmmo[0][3] = 500;

    teamWeaponAmmo[1][1] = 1;
    teamWeaponAmmo[1][2] = 250;
    teamWeaponAmmo[1][2] = 500;

    return 1;
}
Pwn file:

pawn Код:
#include <testinc>

forward OnMissionInit();
public OnMissionInit()
{
    new missionName[128];
    SetGameModeText(missionName);
    new teamSkin[2];
    new Float:teamSpawn[2][4];
    new teamWeapon[2][3];
    new teamWeaponAmmo[2][3];

    AddPlayerClass(teamSkin[0], teamSpawn[0][0], teamSpawn[0][1], teamSpawn[0][2], teamSpawn[0][3], teamWeapon[0][0], teamWeaponAmmo[0][0], teamWeapon[0][1], teamWeaponAmmo[0][1], teamWeapon[0][2], teamWeaponAmmo[0][2]);
    AddPlayerClass(teamSkin[1], teamSpawn[1][0], teamSpawn[1][1], teamSpawn[1][2], teamSpawn[1][3], teamWeapon[1][0], teamWeaponAmmo[1][0], teamWeapon[1][1], teamWeaponAmmo[1][1], teamWeapon[1][2], teamWeaponAmmo[1][2]);

    return 1;
}
Reply


Messages In This Thread
Include problem? - by Steeve_Smith - 22.02.2012, 14:36
Re: Include problem? - by TheArcher - 22.02.2012, 15:43
Re: Include problem? - by niels44 - 22.02.2012, 15:45
Re: Include problem? - by Toreno - 22.02.2012, 15:49
Re : Include problem? - by Steeve_Smith - 22.02.2012, 16:01
Re: Include problem? - by Toreno - 22.02.2012, 16:11
Re : Include problem? - by Steeve_Smith - 22.02.2012, 16:22
Re: Include problem? - by Toreno - 22.02.2012, 16:27
Re : Re: Include problem? - by Steeve_Smith - 22.02.2012, 16:30
Re: Include problem? - by Toreno - 22.02.2012, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)