SA-MP Forums Archive
Invalid expression - 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: Invalid expression (/showthread.php?tid=430689)



Invalid expression - Geeboi_Mehdi - 14.04.2013

Error is
pawn Код:
Mehdivan.Fletcher: C:\Users\Daoud\Desktop\Pilots heaven\gamemodes\PH.pwn(836) : error 029: invalid expression, assumed zero
C:\Users\Daoud\Desktop\Pilots heaven\gamemodes\PH.pwn(836) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664     Copyright (coffee) 1997-2006, ITB CompuPhase
here is the line
pawn Код:
838: };
Please help thanks


Re: Invalid expression - Sithis - 14.04.2013

Include a larger portion of your code. I can see this is incorrect but it's unclear what it's supposed to do. Try 838; };


Re: Invalid expression - Geeboi_Mehdi - 14.04.2013

pawn Код:
};
//----- Skimmer/Boats Compatible -----------------------------------------------
new BOATLocations[][TLocation] =
{



Re: Invalid expression - Geeboi_Mehdi - 14.04.2013

any answer guys please?


Re: Invalid expression - MP2 - 14.04.2013

Include the code above that by about 5 lines.


Re: Invalid expression - HurtLocker - 14.04.2013

curly brackets never take ";"


Re: Invalid expression - mastermax7777 - 14.04.2013

just fcken post the code we wont steal it. .
do the whole function


Re: Invalid expression - Geeboi_Mehdi - 14.04.2013

Wow -25 rep
pawn Код:
{"K.A.C.C Regional HeliPad-C", 2845.1877,2670.8596,10.8894},
    {"K.A.C.C Regional HeliPad-D", 2854.4290,2670.8481,10.8920},
    {"Angel Pine Airport HeliPad-A", -1759.2014,-2898.6067,10.9281},
    {"Angel Pine Airport HeliPad-B", -1730.4406,-2920.7380,10.9281},
    {"Verdeant Bluffs HeliPad-A", 986.7355,-2155.8159,15.4281},
    //{"San Fierro Airbase", -1409.31, 309.65, 25.03},
    {"San Fierro Airbase", -1411.732, 271.751, 22.538},
    {"Flint Country HeliPad", -811.0799,-1163.5837,72.6902},
    //{"San Fierro Airbase", -1522.22, 338.78, 63.32},
    //{"Shea Airport HeliPad-A", 2710.0425, -1688.2413, 12.5681}
};
//----- Skimmer/Boats Compatible -----------------------------------------------
new BOATLocations[][TLocation] =
{
    {"Bayside Seaport A", -2203.7356,2421.7729,2.5803},
    {"Bayside Seaport B", -2231.7341,2449.0798,2.5744},
    {"Bayside Seaport C", -2250.8843,2429.4451,2.5731},
    {"Bayside Seaport D", -2225.6475,2404.8301,2.5785},
    {"Palisades Seaport A", -2954.1018,497.7353,2.6167},
    {"Palisades Seaport B", -2984.8962,499.0645,2.6183},



Re: Invalid expression - Geeboi_Mehdi - 14.04.2013

Please answer me


Re: Invalid expression - Jefff - 14.04.2013

pawn Код:
{"K.A.C.C Regional HeliPad-C", 2845.1877,2670.8596,10.8894},
    {"K.A.C.C Regional HeliPad-D", 2854.4290,2670.8481,10.8920},
    {"Angel Pine Airport HeliPad-A", -1759.2014,-2898.6067,10.9281},
    {"Angel Pine Airport HeliPad-B", -1730.4406,-2920.7380,10.9281},
    {"Verdeant Bluffs HeliPad-A", 986.7355,-2155.8159,15.4281},
    //{"San Fierro Airbase", -1409.31, 309.65, 25.03}, you must delete this line
    {"San Fierro Airbase", -1411.732, 271.751, 22.538},
    {"Flint Country HeliPad", -811.0799,-1163.5837,72.6902}, // remove ,
    //{"San Fierro Airbase", -1522.22, 338.78, 63.32},
    //{"Shea Airport HeliPad-A", 2710.0425, -1688.2413, 12.5681}
};