SA-MP Forums Archive
3 errors when adding spawnpoint - 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: 3 errors when adding spawnpoint (/showthread.php?tid=593783)



3 errors when adding spawnpoint - Hello8 - 09.11.2015

Hi

i am running a little server on the PPC_Trucking Gamemode

now i wanted to add a new spawnpoint for pilot class on an island
i mapped into the server i added the name to the dialog for /respawn
that worked all right but i can't add the coordinates i am getting 3 errors

(1095) : error 001: expected token: "}", but found "{"
(1097) : error 054: unmatched closing brace ("}")
(1097) : error 010: invalid function or declaration

i can't really find what i did wrong.
i posted some of the strings from the gamemode file on pastebin: http://pastebin.com/Cw2H6ntg


can someone help me out ?


Re : 3 errors when adding spawnpoint - StreetRP - 09.11.2015

PHP код:
        new ASpawnLocationsPilot[][TSpawnLocation] =
{
    {
2010.0, -2345.013.690.0}, // Los Santos airport
    
{-1211.0, -105.014.2135.0}, // San Fierro airport
    
{1630.01615.010.990.0    }, // Las Venturas airport
    
{3469.332114.6034.9590.0}    // CI Airport
}; 



Re: 3 errors when adding spawnpoint - jlalt - 09.11.2015

Код:
{1630.0, 1615.0, 10.9, 90.0}
you miss , at last should be
PHP код:
{1630.01615.010.990.0}, 
PHP код:
new ASpawnLocationsPilot[][TSpawnLocation] =
          {
             {
2010.0, -2345.013.690.0}, // Los Santos airport
             
{-1211.0, -105.014.2135.0}, // San Fierro airport
             
{1630.01615.010.990.0}[COLOR="Red"],[/COLOR// Las Venturas airport
             
{3469.332114.6034.9590.0}, // CI Airport
                 
          
};