SA-MP Forums Archive
Errors at SpawnPoints Defination - 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 at SpawnPoints Defination (/showthread.php?tid=456488)



Errors at SpawnPoints Defination - Stefand - 06.08.2013

Hello,

I am developing an Server which has different game maps which has different spawnpoints of course.

I tried this:

pawn Код:
new Float:SpawnPoints[MAX_MAPS][][4] =
{
    {
        {585.2798, 1505.1494, 374.7411, 0},
        {570.7695, 1507.6335, 374.7411, -22.0000},
        {559.3127, 1515.2843, 374.7411, -36.0000},
        {550.9893, 1527.0104, 374.7411, -58.0000},
        {548.8347, 1541.1188, 374.7411, -94.0000},
        {553.1444, 1552.8341, 374.7411, -118.0000},
        {560.4863, 1562.7729, 374.7411, -128.0000},
        {569.4068, 1568.6963, 374.7411, -152.0000},
        {599.2963, 1509.5494, 374.7411, 24.0000},
        {406, 609.0432, 1519.7307, 374.7411, 54.0000},
        {613.8626, 1535.9028, 374.7411, 82.0000},
        {610.5563, 1553.8574, 374.7411, 118.0000},
        {601.8462, 1564.5435, 374.7411, 142.0000}
    },
    {
        {585.2798, 1505.1494, 374.7411, 0},
        {570.7695, 1507.6335, 374.7411, -22.0000},
        {559.3127, 1515.2843, 374.7411, -36.0000},
        {550.9893, 1527.0104, 374.7411, -58.0000},
        {548.8347, 1541.1188, 374.7411, -94.0000},
        {553.1444, 1552.8341, 374.7411, -118.0000},
        {560.4863, 1562.7729, 374.7411, -128.0000},
        {569.4068, 1568.6963, 374.7411, -152.0000},
        {599.2963, 1509.5494, 374.7411, 24.0000},
        {406, 609.0432, 1519.7307, 374.7411, 54.0000},
        {613.8626, 1535.9028, 374.7411, 82.0000},
        {610.5563, 1553.8574, 374.7411, 118.0000},
        {601.8462, 1564.5435, 374.7411, 142.0000}
    }
};
(from an basic script tutorial)
But I get these errors:

Код:
warning 213: tag mismatch
warning 213: tag mismatch
error 018: initialization data exceeds declared size
error 010: invalid function or declaration