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.0, 13.6, 90.0}, // Los Santos airport
{-1211.0, -105.0, 14.2, 135.0}, // San Fierro airport
{1630.0, 1615.0, 10.9, 90.0 }, // Las Venturas airport
{3469.33, 2114.60, 34.95, 90.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.0, 1615.0, 10.9, 90.0},
PHP код:
new ASpawnLocationsPilot[][TSpawnLocation] =
{
{2010.0, -2345.0, 13.6, 90.0}, // Los Santos airport
{-1211.0, -105.0, 14.2, 135.0}, // San Fierro airport
{1630.0, 1615.0, 10.9, 90.0}[COLOR="Red"],[/COLOR] // Las Venturas airport
{3469.33, 2114.60, 34.95, 90.0}, // CI Airport
};