Compiling 1 Simple Error
#1

I have downloaded Rokzlives trucking gamemode and i have 1 probably simple error.

C:\Users\Nicholas\Documents\samp03bsvr_R2_win32\ga memodes\public.pwn(33) : error 029: invalid expression, assumed zero

Here's the line and surroundings

{"We need a load of Propellers From Ls Dock Warehouse 1 To Verdant Meadows", true, 8000, 2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396},
{"We need a load of Soldiers Mail From Area 69 To 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445},
{"We need a load of Landing Gears From 5 Tree Logistics To Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443},
{"We need a load of Oxegen Canisters From RS Haul To SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537},
{"We need a load of Radars From Verdant Meadows To San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537},

}//Line that has the errors
main()
{
print("\n----------------------------------");
print(" Trucking Server");
print("----------------------------------\n");
}

public OnGameModeInit()
{
SetGameModeText("Rokzlive 1.0");
CreateObject(5112,2936.197265625,-1958.0688476563,6.25,0,0,0);
CreateObject(5112,3080.6958007813,-1958.0428466797,6.25,0,0,0);
CreateObject(5112,3233.1323242188,-1958.0546875,6.25,0,0,0);
CreateObject(5112,3384.1000976563,-1958.0362548828,6.25,0,0,0);
Reply
#2

Anyone
Reply
#3

pawn Код:
{"We need a load of Propellers From Ls Dock Warehouse 1 To Verdant Meadows", true, 8000, 2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396},
{"We need a load of Soldiers Mail From Area 69 To 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445},
{"We need a load of Landing Gears From 5 Tree Logistics To Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443},
{"We need a load of Oxegen Canisters From RS Haul To SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537},
{"We need a load of Radars From Verdant Meadows To San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537}
};
Reply
#4

Then i get
C:\Users\Nicholas\Documents\samp03bsvr_R2_win32\ga memodes\public.pwn(33) : error 029: invalid expression, assumed zero
C:\Users\Nicholas\Documents\samp03bsvr_R2_win32\ga memodes\public.pwn(33) : error 008: must be a constant expression; assumed zero
Reply
#5

Show more code above the error line.
Reply
#6

//Here 'ya go jack

#include <a_samp>
#include <TruckingMissions>

#pragma tabsize 0

enum TruckingMissionInfo
{
MissionName[200],
bool:UseTrailerCheck,
MissionPay,
Float:loadx,
Float:loady,
Float:loadz,
Float:unloadx,
Float:unloady,
Float:unloadz
}
new TruckingMissionRandom[][TruckingMissionInfo] =
{
// {"Mission Text", UseTrailerCheck, MissionPay, loadx, loady, loadz, unloadx, unloady, unloadz}
{"We need a load of Holy Water from LVA Freight Depot to LVA Church", true, 250, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203},
{"We need a load of Junk Car Parts from LVA Freight Depot to Shody Ottos", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203},
{"We need a load of Drills From LS Dock Warehouse 2 To Whetstone Mine", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985},
{"We need a load of Top Secret Devices From Randolf Industrial Estate To Area 69", true, 5000, 1594.1290283203, 724.00372314453, 10.469537734985, 134.54122924805, 1945.7899169922, 19.001808166504},
{"We need a load of Boxes From LV Depot To SF Depot", true, 7500, 1723.5736083984, 979.20190429688, 10.469537734985, -2129.4470214844, -84.854187011719, 34.969539642334},
{"We need a load of Propellers From Ls Dock Warehouse 1 To Verdant Meadows", true, 8000, 2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396},
{"We need a load of Soldiers Mail From Area 69 To 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445},
{"We need a load of Landing Gears From 5 Tree Logistics To Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443},
{"We need a load of Oxygen Canisters From RS Haul To SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537},
{"We need a load of Radars From Verdant Meadows To San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537},
};
main()
{
print("\n----------------------------------");
print(" Trucking Server");
print("----------------------------------\n");
}

public OnGameModeInit()
{
SetGameModeText("TruckersUnited");
CreateObject(5112,2936.197265625,-1958.0688476563,6.25,0,0,0);
CreateObject(5112,3080.6958007813,-1958.0428466797,6.25,0,0,0);
CreateObject(5112,3233.1323242188,-1958.0546875,6.25,0,0,0);
CreateObject(5112,3384.1000976563,-1958.0362548828,6.25,0,0,0);
CreateObject(5112,3535.4604492188,-1958.1494140625,6.25,0,0,0);
CreateObject(5112,3680.2158203125,-1958.1612548828,6.25,0,0,0);
CreateObject(5112,3829.3715820313,-1958.1810302734,6.25,0,0,0);
CreateObject(5145,3959.2055664063,-1901.923828125,0.26378631591797,0,0,0);
CreateObject(5184,3811.1899414063,-1806.9571533203,29.649993896484,0,0,180);
CreateObject(5184,3812.6337890625,-1892.7583007813,29.399993896484,0,0,1.994506835937 5);
CreateObject(5184,3811.8159179688,-1868.9151611328,28.899993896484,0,0,181.9940185546 9);
CreateObject(3689,3820.5021972656,-1809.0211181641,18.753711700439,0,0,0);
CreateObject(3707,3768.8588867188,-1874.0847167969,18.523086547852,0,0,0);
CreateObject(3755,3865.4189453125,-1864.6309814453,16.231666564941,0,0,180);
CreateObject(5309,3865.7836914063,-1899.3605957031,13.641693115234,0,0,0);
CreateObject(7019,3949.9885253906,-1925.5786132813,14.330154418945,0,0,0);
CreateObject(3578,3962.9753417969,-1878.5802001953,11.514381408691,0,0,90);
CreateObject(3578,3962.974609375,-1878.580078125,12.264381408691,0,0,90);
CreateObject(3578,3962.6442871094,-1936.3754882813,12.264381408691,0,0,90);
CreateObject(3578,3962.6435546875,-1936.375,13.014381408691,0,0,90);
AddStaticVehicle(403,3915.8657226563,-1998.6021728516,12.290036201477,0,-1,-1);
AddStaticVehicle(403,3921.2583007813,-1998.5010986328,12.290036201477,0,-1,-1);
AddStaticVehicle(403,3926.4072265625,-1998.3460693359,12.290036201477,0,-1,-1);
AddStaticVehicle(514,3937.0773925781,-1998.2034912109,12.442512512207,0,-1,-1);
AddStaticVehicle(514,3941.5727539063,-1998.4250488281,12.442512512207,0,-1,-1);
AddStaticVehicle(514,3946.080078125,-1998.3969726563,12.442512512207,0,-1,-1);
AddStaticVehicle(514,3932.0356445313,-1998.2434082031,12.442512512207,0,-1,-1);
AddStaticVehicle(515,3954.9963378906,-1998.6241455078,12.896456718445,0,-1,-1);
AddStaticVehicle(515,3960.0034179688,-1998.6208496094,12.896456718445,0,-1,-1);
AddStaticVehicle(515,3965.2478027344,-1998.8790283203,12.896456718445,0,-1,-1);
AddStaticVehicle(515,3950.1440429688,-1998.6145019531,12.896456718445,0,-1,-1);
AddStaticVehicle(435,3965.0688476563,-2009.3623046875,11.97119140625,0,-1,-1);
AddStaticVehicle(435,3960.5727539063,-2009.1975097656,11.97119140625,0,-1,-1);
AddStaticVehicle(435,3955.3273925781,-2009.0050048828,11.97119140625,0,-1,-1);
Reply
#7

Код:
437.23773193359, 5.5075283050537},
};
main()
Remove that comma!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)