Need help on Spawn
#1

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.
};
Reply
#2

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.
};
Reply
#3

Код:
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.
Reply
#4

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
Reply
#5

Still don't work.
Reply
#6

The problem is in the array size. Check the enum TSpawnLocation.
Reply
#7

Код:
// Setup all the fields for a spawnlocation
enum TSpawnLocation
{
	Float:SpawnX,
	Float:SpawnY,
	Float:SpawnZ,
	Float:SpawnAngle
}
Reply
#8

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}
};
Reply
#9

it work.how i do the same?
Reply
#10

what the same ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)