SA-MP Forums Archive
Spawn errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spawn errors (/showthread.php?tid=432249)



Spawn errors - DerickClark - 21.04.2013

i add new spawn.gave me errors.

Код:
(692) : warning 227: more initiallers than enum fields
warning 227: more initiallers than enum fields
error 018: initialization data exceeds declared size
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
// Setup spawnlocations for each class (when selecting "Spawn" at class-selection, a random spawnlocation is selected)
new ASpawnLocationsTrucker[][TSpawnLocation] =
{
	{1787.9606,-2024.6791,13.4815,176.2519,0,0}, // El Corona Depot
};
Код:
AddPlayerClass(161,1787.9606,-2024.6791,13.4815,176.2519,0,0,0,0,0,0); //



Re: Spawn errors - Jefff - 21.04.2013

Warning says everything, show enum TSpawnLocation
Shoulde be {X,Y,Z,A} i think


Re: Spawn errors - DerickClark - 21.04.2013

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Warning says everything, show enum TSpawnLocation
Shoulde be {X,Y,Z,A} i think
i try that...


Re: Spawn errors - JustinAn - 22.04.2013

Which one is the one with the errors. AddPlayerClass or The ASpawnLocationsTrucker?


Re: Spawn errors - DerickClark - 22.04.2013

ASpawnLocationsTrucker