06.11.2010, 12:03
How to add cars ? im getting errors (i have 0 cars in my gm)
C:\Documents and Settings\Andero\Desktop\Server\gamemodes\Stunters.pwn(78) : error 055: start of function body without function header C:\Documents and Settings\Andero\Desktop\Server\gamemodes\Stunters.pwn(121) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Stunting Life"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } { AddStaticVehicle(522,423.4586,2436.6729,16.0615,89 .2767,6,25); // NRG AddStaticVehicle(522,423.0509,2440.0686,16.0564,87 .7714,3,; // NRG AddStaticVehicle(560,422.1855,2447.7004,16.2111,91 .7719,17,1); // Sultan AddStaticVehicle(560,422.0891,2451.3933,16.2103,91 .9213,9,39); // Sultan AddStaticVehicle(415,421.7908,2458.5745,16.2708,89 .6705,36,1); // Cheetah AddStaticVehicle(415,421.8355,2462.4363,16.2591,88 .5961,25,1); // Cheetah AddStaticVehicle(411,422.4604,2468.5859,16.2136,91 .2210,116,1); // Infernus AddStaticVehicle(411,422.8127,2472.7905,16.2288,88 .8475,64,1); // Infernus AddStaticVehicle(429,387.0981,2472.6062,16.1797,27 1.0911,14,14); // Banshee AddStaticVehicle(429,387.5328,2467.9783,16.1797,26 9.3271,14,14); // Banshee AddStaticVehicle(565,387.4529,2462.1274,16.1237,26 4.8484,42,42); // FLash AddStaticVehicle(565,386.4933,2456.7769,16.1273,27 1.6693,42,42); // FLash AddStaticVehicle(558,387.9699,2451.9238,16.1291,27 0.2988,116,1); // Uranus AddStaticVehicle(558,387.8307,2447.1741,16.1301,27 2.9786,116,1); // Uranus AddStaticVehicle(451,386.8081,2441.3257,16.2076,26 7.7312,125,125); // Turismo AddStaticVehicle(451,388.0025,2436.1318,16.2072,26 8.0515,125,125); // Turismo AddStaticVehicle(415,958.3924,2506.9883,247.5636,9 0.6352,40,1); // CHeetah AddStaticVehicle(415,958.6052,2502.7188,247.5641,8 5.9635,62,1); // CHeetah AddStaticVehicle(411,958.1047,2497.0198,247.5195,8 5.0400,106,1); // Infernus AddStaticVehicle(411,957.6352,2492.5793,247.5196,8 8.6031,80,1); // Infernus AddStaticVehicle(522,959.6821,2485.6716,247.3576,8 7.0149,51,11; // NRG AddStaticVehicle(522,959.5542,2483.9556,247.3570,9 2.5365,36,105); // NRG AddStaticVehicle(522,959.3687,2481.8706,247.3612,8 8.2215,8,82); // NRG AddStaticVehicle(522,959.4327,2478.6184,247.3615,9 1.5441,8,82); // NRG AddStaticVehicle(522,959.9369,2475.9138,247.3629,7 3.3249,8,82); // NRG AddStaticVehicle(411,1024.9579,2538.2134,274.1317, 89.1923,116,1); // Infernus AddStaticVehicle(411,1025.3269,2532.3696,274.1317, 88.5369,116,1); // Infernus AddStaticVehicle(411,1025.5299,2526.3777,274.1317, 89.5000,116,1); // Infernus AddStaticVehicle(411,1025.2635,2520.4863,274.1318, 90.3964,116,1); // Infernus AddStaticVehicle(560,39.7550,2345.6172,132.7771,18 0.6287,37,0); // Sultan AddStaticVehicle(560,39.6656,2353.7708,132.7765,18 0.6283,37,0); // Sultan AddStaticVehicle(560,39.5496,2364.3538,132.7782,18 0.6278,37,0); // Sultan AddStaticVehicle(560,39.3811,2379.7371,132.7773,18 0.6274,37,0); // Sultan AddStaticVehicle(560,115.6885,2367.3105,132.7770,2 38.9220,37,0); // Sultan AddStaticVehicle(560,126.4246,2349.2971,132.7775,1 88.8883,37,0); // Sultan AddStaticVehicle(565,162.0257,2286.1462,132.6965,3 57.7319,10,10); // Flash AddStaticVehicle(565,162.2968,2292.9897,132.6954,3 57.7319,10,10); // Flash AddStaticVehicle(565,162.6247,2301.2705,132.6963,3 57.7321,10,10); // Flash AddStaticVehicle(565,163.0270,2311.4297,132.6966,3 57.7322,10,10); // Flash AddStaticVehicle(565,163.3104,2325.6240,132.6926,3 58.8450,10,10); // Flash AddStaticVehicle(565,162.8810,2341.0012,132.6934,2 .0475,10,10); // Flash return 1; }
public OnGameModeInit()
{
SetGameModeText("Stunting Life");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddStaticVehicle(522,423.4586,2436.6729,16.0615,89.2767,6,25); // NRG
AddStaticVehicle(522,423.0509,2440.0686,16.0564,87.7714,3,0); // NRG
AddStaticVehicle(560,422.1855,2447.7004,16.2111,91.7719,17,1); // Sultan
AddStaticVehicle(560,422.0891,2451.3933,16.2103,91.9213,9,39); // Sultan
AddStaticVehicle(415,421.7908,2458.5745,16.2708,89.6705,36,1); // Cheetah
AddStaticVehicle(415,421.8355,2462.4363,16.2591,88.5961,25,1); // Cheetah
AddStaticVehicle(411,422.4604,2468.5859,16.2136,91.2210,116,1); // Infernus
AddStaticVehicle(411,422.8127,2472.7905,16.2288,88.8475,64,1); // Infernus
AddStaticVehicle(429,387.0981,2472.6062,16.1797,271.0911,14,14); // Banshee
AddStaticVehicle(429,387.5328,2467.9783,16.1797,269.3271,14,14); // Banshee
AddStaticVehicle(565,387.4529,2462.1274,16.1237,264.8484,42,42); // FLash
AddStaticVehicle(565,386.4933,2456.7769,16.1273,271.6693,42,42); // FLash
AddStaticVehicle(558,387.9699,2451.9238,16.1291,270.2988,116,1); // Uranus
AddStaticVehicle(558,387.8307,2447.1741,16.1301,272.9786,116,1); // Uranus
AddStaticVehicle(451,386.8081,2441.3257,16.2076,267.7312,125,125); // Turismo
AddStaticVehicle(451,388.0025,2436.1318,16.2072,268.0515,125,125); // Turismo
AddStaticVehicle(415,958.3924,2506.9883,247.5636,90.6352,40,1); // CHeetah
AddStaticVehicle(415,958.6052,2502.7188,247.5641,85.9635,62,1); // CHeetah
AddStaticVehicle(411,958.1047,2497.0198,247.5195,85.0400,106,1); // Infernus
AddStaticVehicle(411,957.6352,2492.5793,247.5196,88.6031,80,1); // Infernus
AddStaticVehicle(522,959.6821,2485.6716,247.3576,87.0149,51,11; // NRG
AddStaticVehicle(522,959.5542,2483.9556,247.3570,92.5365,36,105); // NRG
AddStaticVehicle(522,959.3687,2481.8706,247.3612,88.2215,8,82); // NRG
AddStaticVehicle(522,959.4327,2478.6184,247.3615,91.5441,8,82); // NRG
AddStaticVehicle(522,959.9369,2475.9138,247.3629,73.3249,8,82); // NRG
AddStaticVehicle(411,1024.9579,2538.2134,274.1317,89.1923,116,1); // Infernus
AddStaticVehicle(411,1025.3269,2532.3696,274.1317,88.5369,116,1); // Infernus
AddStaticVehicle(411,1025.5299,2526.3777,274.1317,89.5000,116,1); // Infernus
AddStaticVehicle(411,1025.2635,2520.4863,274.1318,90.3964,116,1); // Infernus
AddStaticVehicle(560,39.7550,2345.6172,132.7771,180.6287,37,0); // Sultan
AddStaticVehicle(560,39.6656,2353.7708,132.7765,180.6283,37,0); // Sultan
AddStaticVehicle(560,39.5496,2364.3538,132.7782,180.6278,37,0); // Sultan
AddStaticVehicle(560,39.3811,2379.7371,132.7773,180.6274,37,0); // Sultan
AddStaticVehicle(560,115.6885,2367.3105,132.7770,238.9220,37,0); // Sultan
AddStaticVehicle(560,126.4246,2349.2971,132.7775,188.8883,37,0); // Sultan
AddStaticVehicle(565,162.0257,2286.1462,132.6965,357.7319,10,10); // Flash
AddStaticVehicle(565,162.2968,2292.9897,132.6954,357.7319,10,10); // Flash
AddStaticVehicle(565,162.6247,2301.2705,132.6963,357.7321,10,10); // Flash
AddStaticVehicle(565,163.0270,2311.4297,132.6966,357.7322,10,10); // Flash
AddStaticVehicle(565,163.3104,2325.6240,132.6926,358.8450,10,10); // Flash
AddStaticVehicle(565,162.8810,2341.0012,132.6934,2.0475,10,10); // Flash
return 1;
}
C:\Documents and Settings\Andero\Desktop\Server\gamemodes\Stunters.pwn(75) : error 029: invalid expression, assumed zero C:\Documents and Settings\Andero\Desktop\Server\gamemodes\Stunters.pwn(94) : error 001: expected token: ",", but found ";" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
public OnGameModeInit()
{
SetGameModeText("Stunting Life");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddStaticVehicle(522,423.4586,2436.6729,16.0615,89.2767,6,25); // NRG
AddStaticVehicle(522,423.0509,2440.0686,16.0564,87.7714,3,0); // NRG
AddStaticVehicle(560,422.1855,2447.7004,16.2111,91.7719,17,1); // Sultan
AddStaticVehicle(560,422.0891,2451.3933,16.2103,91.9213,9,39); // Sultan
AddStaticVehicle(415,421.7908,2458.5745,16.2708,89.6705,36,1); // Cheetah
AddStaticVehicle(415,421.8355,2462.4363,16.2591,88.5961,25,1); // Cheetah
AddStaticVehicle(411,422.4604,2468.5859,16.2136,91.2210,116,1); // Infernus
AddStaticVehicle(411,422.8127,2472.7905,16.2288,88.8475,64,1); // Infernus
AddStaticVehicle(429,387.0981,2472.6062,16.1797,271.0911,14,14); // Banshee
AddStaticVehicle(429,387.5328,2467.9783,16.1797,269.3271,14,14); // Banshee
AddStaticVehicle(565,387.4529,2462.1274,16.1237,264.8484,42,42); // FLash
AddStaticVehicle(565,386.4933,2456.7769,16.1273,271.6693,42,42); // FLash
AddStaticVehicle(558,387.9699,2451.9238,16.1291,270.2988,116,1); // Uranus
AddStaticVehicle(558,387.8307,2447.1741,16.1301,272.9786,116,1); // Uranus
AddStaticVehicle(451,386.8081,2441.3257,16.2076,267.7312,125,125); // Turismo
AddStaticVehicle(451,388.0025,2436.1318,16.2072,268.0515,125,125); // Turismo
AddStaticVehicle(415,958.3924,2506.9883,247.5636,90.6352,40,1); // CHeetah
AddStaticVehicle(415,958.6052,2502.7188,247.5641,85.9635,62,1); // CHeetah
AddStaticVehicle(411,958.1047,2497.0198,247.5195,85.0400,106,1); // Infernus
AddStaticVehicle(411,957.6352,2492.5793,247.5196,88.6031,80,1); // Infernus
AddStaticVehicle(522,959.6821,2485.6716,247.3576,87.0149,51,11; // NRG
AddStaticVehicle(522,959.5542,2483.9556,247.3570,92.5365,36,105); // NRG
AddStaticVehicle(522,959.3687,2481.8706,247.3612,88.2215,8,82); // NRG
AddStaticVehicle(522,959.4327,2478.6184,247.3615,91.5441,8,82); // NRG
AddStaticVehicle(522,959.9369,2475.9138,247.3629,73.3249,8,82); // NRG
AddStaticVehicle(411,1024.9579,2538.2134,274.1317,89.1923,116,1); // Infernus
AddStaticVehicle(411,1025.3269,2532.3696,274.1317,88.5369,116,1); // Infernus
AddStaticVehicle(411,1025.5299,2526.3777,274.1317,89.5000,116,1); // Infernus
AddStaticVehicle(411,1025.2635,2520.4863,274.1318,90.3964,116,1); // Infernus
AddStaticVehicle(560,39.7550,2345.6172,132.7771,180.6287,37,0); // Sultan
AddStaticVehicle(560,39.6656,2353.7708,132.7765,180.6283,37,0); // Sultan
AddStaticVehicle(560,39.5496,2364.3538,132.7782,180.6278,37,0); // Sultan
AddStaticVehicle(560,39.3811,2379.7371,132.7773,180.6274,37,0); // Sultan
AddStaticVehicle(560,115.6885,2367.3105,132.7770,238.9220,37,0); // Sultan
AddStaticVehicle(560,126.4246,2349.2971,132.7775,188.8883,37,0); // Sultan
AddStaticVehicle(565,162.0257,2286.1462,132.6965,357.7319,10,10); // Flash
AddStaticVehicle(565,162.2968,2292.9897,132.6954,357.7319,10,10); // Flash
AddStaticVehicle(565,162.6247,2301.2705,132.6963,357.7321,10,10); // Flash
AddStaticVehicle(565,163.0270,2311.4297,132.6966,357.7322,10,10); // Flash
AddStaticVehicle(565,163.3104,2325.6240,132.6926,358.8450,10,10); // Flash
AddStaticVehicle(565,162.8810,2341.0012,132.6934,2.0475,10,10); // Flash
return 1;
}