Need help on Spawn -
DerickClark - 11.02.2013
Error's
Код:
C:\Users\pawno\include\PPC_Defines.inc(703) : error 001: expected token: "}", but found "{"
C:\Users\pawno\include\PPC_Defines.inc(704) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Код:
// Setup spawnlocations for each class (when selecting "Spawn" at class-selection, a random spawnlocation is selected)
new ASpawnLocationsTrucker[][TSpawnLocation] =
{
{-525.0, -502.0, 26.0, 0.0}, // Fallen Tree Depot
{-74.7, -1137.5, 4.5, 0.0}, // Flint Trucking Depot
{1457.0, 975.5, 11.0, 0.0}, // LVA Freight Depot
{-2136.0, -247.5, 36.5, 270.0}, // Doherty Depot
{1766.5, -2040.7, 14.0, 270.0}, // El Corona Depot
{-546.0, 2594.0, 54.0, 270.0}, // Las Payasdas Depot
{332.0, 900.0, 25.0, 205.0}, // Quarry Top
{-1575.0, -2724.0, 49.0, 146.0} // Shady Creek Depot
{608.0974,1672.7622,6.9922,100.9250,0,0,0,0,0,0}, <---- dis one.
};
Re: Need help on Spawn -
Scrillex - 11.02.2013
pawn Код:
new ASpawnLocationsTrucker[10][TSpawnLocation] =
{
{-525.0, -502.0, 26.0, 0.0}, // Fallen Tree Depot
{-74.7, -1137.5, 4.5, 0.0}, // Flint Trucking Depot
{1457.0, 975.5, 11.0, 0.0}, // LVA Freight Depot
{-2136.0, -247.5, 36.5, 270.0}, // Doherty Depot
{1766.5, -2040.7, 14.0, 270.0}, // El Corona Depot
{-546.0, 2594.0, 54.0, 270.0}, // Las Payasdas Depot
{332.0, 900.0, 25.0, 205.0}, // Quarry Top
{-1575.0, -2724.0, 49.0, 146.0}, // Shady Creek Depot
{608.0974,1672.7622,6.9922,100.9250,0,0,0,0,0,0} <---- dis one.
};
Re: Need help on Spawn -
DerickClark - 11.02.2013
Код:
C:\Users\pawno\include\PPC_Defines.inc(703) : warning 227: more initiallers than enum fields
C:\Users\\pawno\include\PPC_Defines.inc(703) : warning 227: more initiallers than enum fields
C:\Users\\pawno\include\PPC_Defines.inc(703) : warning 227: more initiallers than enum fields
C:\Users\\pawno\include\PPC_Defines.inc(703) : warning 227: more initiallers than enum fields
C:\Users\\pawno\include\PPC_Defines.inc(703) : warning 227: more initiallers than enum fields
C:\Users\pawno\include\PPC_Defines.inc(703) : warning 227: more initiallers than enum fields
C:\Users\pawno\include\PPC_Defines.inc(703) : error 018: initialization data exceeds declared size
C:\Users\\pawno\include\PPC_Defines.inc(704) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: Need help on Spawn -
Scrillex - 11.02.2013
btw spawns are making x, y, z,
why you have something like this?
608.0974,1672.7622,6.9922,100.9250,0,0,0,0,0,0
I think it's neeed to be
608.0974,1672.7622,6.9922
Re: Need help on Spawn -
DerickClark - 11.02.2013
Still don't work.
Re: Need help on Spawn -
Backwardsman97 - 11.02.2013
The problem is in the array size. Check the enum TSpawnLocation.
Re: Need help on Spawn -
DerickClark - 11.02.2013
Код:
// Setup all the fields for a spawnlocation
enum TSpawnLocation
{
Float:SpawnX,
Float:SpawnY,
Float:SpawnZ,
Float:SpawnAngle
}
Re: Need help on Spawn -
Windrush - 11.02.2013
pawn Код:
new ASpawnLocationsTrucker[][TSpawnLocation] =
{
{-525.0, -502.0, 26.0, 0.0}, // Fallen Tree Depot
{-74.7, -1137.5, 4.5, 0.0}, // Flint Trucking Depot
{1457.0, 975.5, 11.0, 0.0}, // LVA Freight Depot
{-2136.0, -247.5, 36.5, 270.0}, // Doherty Depot
{1766.5, -2040.7, 14.0, 270.0}, // El Corona Depot
{-546.0, 2594.0, 54.0, 270.0}, // Las Payasdas Depot
{332.0, 900.0, 25.0, 205.0}, // Quarry Top
{-1575.0, -2724.0, 49.0, 146.0}, // Shady Creek Depot
{608.0974,1672.7622,6.9922,100.9250}
};
Re: Need help on Spawn -
DerickClark - 11.02.2013
it work.how i do the same?
Re: Need help on Spawn -
Windrush - 11.02.2013
what the same ?