Pawn Compile Error (#001) -
joshkeley - 24.07.2012
When I try to compile my script, I get this error message:
Код:
C:\Users\keleyj\Desktop\Server\gamemodes\Global Trucking.pwn(31) : error 001: expected token: "}", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
This is the area which the error seems to be appearing in:
Код:
new TruckingMissionRandom[][TruckingMissionInfo] =
{
// {"Mission Text", UseTrailerCheck, MissionPay, loadx, loady, loadz, unloadx, unloady, unloadz}
/* KEY:
** "Mission Text" = The text the player will see when he/she is doing the mission!
** UseTrailerCheck = Weather or not the mission requires you use a vehile that has a trailer. Ex: Roadtrain with an Artict1 trailer!
** MissionPay = The amount the player will recive for doing there mission!
** loadx, loady, and loadz = The loading coordinates of the loading checkpoint!
** unloadx, unloadx, unloadx = The un-loading coordinates of the unloading checkpoint!
*/
{"Deliver Water from LVA Freight Depot to LVA Church", true, 500, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203}
{"Deliver Junk Car Parts from LVA Freight Depot to Shody Ottos", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203}
{"Deliver Drills From LS Dock Warehouse 2 To Whetstone Mine", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985}
{"Deliver Supplies From Randolf Industrial Estate To Area 69", true, 5000, 1594.1290283203, 724.00372314453, 10.469537734985, 134.54122924805, 1945.7899169922, 19.001808166504}
{"Deliver Boxes From LV Depot To SF Depot", true, 7500, 1723.5736083984, 979.20190429688, 10.469537734985, -2129.4470214844, -84.854187011719, 34.969539642334}
{"Deliver Propellers From Ls Dock Warehouse 1 To Verdant Meadows", true, 8000, 2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396}
{"Deliver Soldiers Mail From Area 69 To 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445}
{"Deliver Export Goods From 5 Tree Logistics To Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443}
{"Deliver Oxegen Tanks From RS Haul To SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537}
{"Deliver Export Goods From Verdant Meadows To San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537}
}
Please help me.
Thanks,
Josh.
Re: Pawn Compile Error (#001) -
M3mPHi$_S3 - 24.07.2012
replace all " }" with );
Re: Pawn Compile Error (#001) -
Devilxz97 - 24.07.2012
or maybe this },
Re: Pawn Compile Error (#001) -
joshkeley - 24.07.2012
Quote:
Originally Posted by Devilxz97
or maybe this },
|
I tried this, and I got these errors:
Код:
C:\Users\keleyj\Desktop\Server\gamemodes\Global Trucking.pwn(40) : error 029: invalid expression, assumed zero
C:\Users\keleyj\Desktop\Server\gamemodes\Global Trucking.pwn(40) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: Pawn Compile Error (#001) -
Devilxz97 - 24.07.2012
and ); did u try this ?
Re: Pawn Compile Error (#001) -
joshkeley - 24.07.2012
Quote:
Originally Posted by Devilxz97
and ); did u try this ?
|
When I do this, I get this error message:
Код:
C:\Users\keleyj\Desktop\Server\gamemodes\Global Trucking.pwn(30) : error 001: expected token: "}", but found ")"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Pawn Compile Error (#001) -
joshkeley - 24.07.2012
I have team viewer if that helps....
Re: Pawn Compile Error (#001) -
Infinity90 - 24.07.2012
Post your updated code here and show which line is giving the error.
Re: Pawn Compile Error (#001) -
deffo - 24.07.2012
Quote:
Originally Posted by joshkeley
error 001: expected token: "}", but found ")"
|
This means that instead of symbol ")", you need to have symbol "}" in the very first line, which is line 001.
You seriously didn't even knew this much? Or I am misunderstanding something, because its hard to believe sometimes.
If the above still does not help, check ALL YOUR BRACKETS, its probably you have an extra bracket or a missing bracket somewhere in the script.
Re: Pawn Compile Error (#001) -
joshkeley - 24.07.2012
Код:
new TruckingMissionRandom[][TruckingMissionInfo] =
{
// {"Mission Text", UseTrailerCheck, MissionPay, loadx, loady, loadz, unloadx, unloady, unloadz}
/* KEY:
** "Mission Text" = The text the player will see when he/she is doing the mission!
** UseTrailerCheck = Weather or not the mission requires you use a vehile that has a trailer. Ex: Roadtrain with an Artict1 trailer!
** MissionPay = The amount the player will recive for doing there mission!
** loadx, loady, and loadz = The loading coordinates of the loading checkpoint!
** unloadx, unloadx, unloadx = The un-loading coordinates of the unloading checkpoint!
*/
{"Deliver Water from LVA Freight Depot to LVA Church", true, 500, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203);
{"Deliver Junk Car Parts from LVA Freight Depot to Shody Ottos", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203);
{"Deliver Drills From LS Dock Warehouse 2 To Whetstone Mine", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985);
{"Deliver Supplies From Randolf Industrial Estate To Area 69", true, 5000, 1594.1290283203, 724.00372314453, 10.469537734985, 134.54122924805, 1945.7899169922, 19.001808166504);
{"Deliver Boxes From LV Depot To SF Depot", true, 7500, 1723.5736083984, 979.20190429688, 10.469537734985, -2129.4470214844, -84.854187011719, 34.969539642334);
{"Deliver Propellers From Ls Dock Warehouse 1 To Verdant Meadows", true, 8000, 2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396);
{"Deliver Soldiers Mail From Area 69 To 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445);
{"Deliver Export Goods From 5 Tree Logistics To Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443);
{"Deliver Oxegen Tanks From RS Haul To SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537);
{"Deliver Export Goods From Verdant Meadows To San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537);
}
This is the code and this is the error: Line 29 is the first line of missions (Deliver water.....).
Код:
C:\Users\keleyj\Desktop\Server\gamemodes\Global Trucking.pwn(29) : error 001: expected token: "}", but found ")"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.