[URGENT] Can someone help me with those errors?
#1

So I am making a trucking server and I finished everything now, just there's one problem. 2 errors.
Quote:

C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(40) : error 029: invalid expression, assumed zero
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(40) : error 008: must be a constant expression; assumed zero
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(32 : warning 217: loose indentation
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(334) : warning 217: loose indentation
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(340) : warning 217: loose indentation
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(345) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

And this is the line 40.
Код:
	{"Potrebnen ni e transport na Holy Water od LVA Freight Depot do LVA Church", true, 250, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203},
	{"Potrebnen ni e transport na Junk Car Parts od LVA Freight Depot do Shody Ottos", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203},
	{"Potrebnen ni e transport na Drills od LS Dock Warehouse 2 do Whetstone Mine", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985},
	{"Potrebnen ni e transport na Top Secret Devices od Randolf Industrial Estate do Area 69", true, 5000, 1594.1290283203, 724.00372314453, 10.469537734985, 134.54122924805, 1945.7899169922, 19.001808166504},
	{"Potrebnen ni e transport na Boxes od LV Depot do SF Depot", true, 7500, 1723.5736083984, 979.20190429688, 10.469537734985, -2129.4470214844, -84.854187011719, 34.969539642334},
	{"Potrebnen ni e transport na Propellers od Ls Dock Warehouse 1 do Verdant Meadows", true, 8000,  2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396},
	{"Potrebnen ni e transport na Soldiers Mail od Area 69 do 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445},
	{"Potrebnen ni e transport na Landing Gears od 5 Tree Logistics do Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443},
	{"Potrebnen ni e transport na Oxygen Canisters od RS Haul do SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537},
	{"Potrebnen ni e transport na Radars od Verdant Meadows do San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537},
};
The last line, the ); is the line 40.
Reply
#2

pawn Код:
{"Potrebnen ni e transport na Holy Water od LVA Freight Depot do LVA Church", true, 250, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203},
    {"Potrebnen ni e transport na Junk Car Parts od LVA Freight Depot do Shody Ottos", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203},
    {"Potrebnen ni e transport na Drills od LS Dock Warehouse 2 do Whetstone Mine", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985},
    {"Potrebnen ni e transport na Top Secret Devices od Randolf Industrial Estate do Area 69", true, 5000, 1594.1290283203, 724.00372314453, 10.469537734985, 134.54122924805, 1945.7899169922, 19.001808166504},
    {"Potrebnen ni e transport na Boxes od LV Depot do SF Depot", true, 7500, 1723.5736083984, 979.20190429688, 10.469537734985, -2129.4470214844, -84.854187011719, 34.969539642334},
    {"Potrebnen ni e transport na Propellers od Ls Dock Warehouse 1 do Verdant Meadows", true, 8000,  2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396},
    {"Potrebnen ni e transport na Soldiers Mail od Area 69 do 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445},
    {"Potrebnen ni e transport na Landing Gears od 5 Tree Logistics do Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443},
    {"Potrebnen ni e transport na Oxygen Canisters od RS Haul do SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537},
    {"Potrebnen ni e transport na Radars od Verdant Meadows do San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537}
};
Reply
#3

When I replaced the old script with this script you gave me, it has 2 errors.
Quote:

C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(39) : error 001: expected token: "}", but found "["
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(40) : error 010: invalid function or declaration
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(32 : warning 217: loose indentation
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(334) : warning 217: loose indentation
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(340) : warning 217: loose indentation
C:\Users\Razor\Desktop\DLGAMES Trucking\gamemodes\public.pwn(345) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)