SA-MP Forums Archive
Errors Enum - 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: Errors Enum (/showthread.php?tid=603301)



Errors Enum - Ilai14 - 21.03.2016

two errors:
error 018: initialization data exceeds declared size
error 010: invalid function or declaration

Код:
enum CheckPointsInfo
{
	Float:CP_X,
	Float:CP_Y,
	Float:CP_Z
};

new Float:cpInfo[4][CheckPointsInfo] =
{
	{225.51883, 1872.50427, 12.91019},
	{955.56506, 2059.74561, 9.81664},
	{-655.87238, 916.86169, 10.85824},
	{-1402.72473, 2625.28833, 54.76358}, // error 018
	{-203.52759, 1186.51062, 18.73560}
}; // erro 010



Re: Errors Enum - Raimis_R - 21.03.2016

pawn Код:
new Float:cpInfo[5][CheckPointsInfo]



Re: Errors Enum - AbyssMorgan - 21.03.2016

PHP код:
new cpInfo[][CheckPointsInfo] =
{
    {
225.518831872.5042712.91019},
    {
955.565062059.745619.81664},
    {-
655.87238916.8616910.85824},
    {-
1402.724732625.2883354.76358},
    {-
203.527591186.5106218.73560}
};