MAP CONSTRUCTING - Help me fast! :(
#1

Hello guys, so I am a bit newer in scripting. I know some basic scripts and stuff, and now I decided to add a map into me and my friend's server. However when I add the mapping these errors show up:

Код:
C:\Users\Domagoj\Desktop\mapdomak.pwn(5) : error 055: start of function body without function header
C:\Users\Domagoj\Desktop\mapdomak.pwn(119) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
This is the whole script:

Код:
#include <streamer>
#include < a_samp >
//---------------------------------------------------------------------//
public OnGameModeInit();
{
print("Made by Domac");
    RemoveBuildingForPlayer(4094, 1586.2891, -1517.6797, 23.8906, 0.25);
RemoveBuildingForPlayer( 4131, 1588.4453, -1509.1406, 27.3125, 0.25);
RemoveBuildingForPlayer( 4132, 1588.4453, -1509.1406, 27.3125, 0.25);
RemoveBuildingForPlayer( 3757, 1593.4688, -1556.1406, 32.2500, 0.25);
RemoveBuildingForPlayer( 1290, 1602.9688, -1524.4688, 33.7578, 0.25);
RemoveBuildingForPlayer( 3757, 1571.9063, -1521.7188, 39.0781, 0.25);
RemoveBuildingForPlayer( 4086, 1586.2891, -1517.6797, 23.8906, 0.25);
RemoveBuildingForPlayer( 1290, 1601.0391, -1454.2734, 33.7578, 0.25);
RemoveBuildingForPlayer( 17935, 2401.2656, -1708.3828, 14.9766, 0.25);
RemoveBuildingForPlayer( 1410, 2404.5625, -1718.9922, 13.3906, 0.25);
RemoveBuildingForPlayer( 1410, 2399.1406, -1718.5625, 13.2344, 0.25);
RemoveBuildingForPlayer( 1265, 2399.3984, -1721.4219, 12.9219, 0.25);
RemoveBuildingForPlayer( 17934, 2401.2656, -1708.3828, 14.9766, 0.25);
CreateObject(3260, 1561.90186, -1267.93188, 277.52554,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1561.79492, -1269.69153, 278.87344,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1561.66089, -1271.91235, 280.77386,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1561.56287, -1274.02576, 282.58060,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1561.45825, -1275.64270, 283.99652,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1561.37805, -1277.54077, 285.61472,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1561.21716, -1279.67542, 287.40948,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1561.07031, -1281.87061, 289.27997,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1560.96667, -1284.06885, 291.15829,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1560.88367, -1286.08801, 292.92773,   49.50000, -2.82000, 0.00000);
CreateObject(3260, 1560.69727, -1288.24634, 294.77170,   49.50000, -2.82000, 0.00000);
CreateObject(4100, 1560.10229, -1294.68860, 300.11728,   92.00000, 0.00000, -91.00000);
CreateObject(4100, 1559.65051, -1304.52283, 308.32178,   92.00000, 0.00000, -91.00000);
CreateObject(4100, 1559.28174, -1313.41919, 315.72647,   92.00000, 0.00000, -91.00000);
CreateObject(4100, 1558.76306, -1323.26855, 323.95270,   92.00000, 0.00000, -91.00000);
CreateObject(4100, 1558.03857, -1334.79663, 328.56647,   47.00000, 92.00000, -10.00000);
CreateObject(2180, 1544.74976, -1360.55676, 328.92831,   91.00000, 0.00000, -31.00000);
CreateObject(4100, 1556.00757, -1348.32385, 329.28650,   47.00000, 92.00000, -10.00000);
CreateObject(2180, 1555.11365, -1353.11963, 328.92831,   91.00000, 0.00000, 11.00000);
CreateObject(16095, 1531.77100, -1357.87244, 328.45190,   0.00000, 0.00000, -178.00000);
CreateObject(16095, 1591.84302, -1255.54138, 276.87140,   0.00000, 0.00000, 0.00000);
CreateObject(16095, 1591.86609, -1248.66528, 276.87140,   0.00000, 0.00000, 0.00000);
CreateObject(16095, 1591.90845, -1241.76746, 276.87140,   0.00000, 0.00000, 0.00000);
CreateObject(1435, 1565.98523, -1259.53894, 276.87225,   0.00000, 0.00000, 0.00000);
CreateObject(1435, 1564.12366, -1259.56226, 276.87225,   0.00000, 0.00000, 0.00000);
CreateObject(1435, 1561.50452, -1259.50781, 276.87225,   0.00000, 0.00000, 0.00000);
CreateObject(1435, 1560.13416, -1264.89868, 276.87231,   0.00000, 0.00000, -90.00000);
CreateObject(1435, 1560.13416, -1264.89868, 276.87231,   0.00000, 0.00000, -90.00000);
CreateObject(974, 1560.21191, -1265.90369, 277.45819,   0.00000, 0.00000, -90.00000);
CreateObject(974, 1560.17505, -1262.70374, 277.45819,   0.00000, 0.00000, -90.00000);
CreateObject(974, 1563.49707, -1259.38513, 277.45819,   0.00000, 0.00000, 0.00000);
CreateObject(1435, 1565.11194, -1267.15222, 276.87225,   0.00000, 0.00000, 0.00000);
CreateObject(974, 1566.24158, -1267.28711, 277.45819,   0.00000, 0.00000, 0.00000);
CreateObject(3934, 1569.72607, -1236.66833, 276.88440,   0.00000, 0.00000, 0.00000);
CreateObject(3996, 1561.74158, -1509.01489, 26.34012,   4.26000, -3.20000, -88.00000);
CreateObject(4100, 1560.30603, -1466.07434, 23.73900,   152.00000, -85.00000, -4.00000);
CreateObject(4100, 1563.12231, -1466.68359, 23.71900,   152.00000, -85.00000, -4.00000);
CreateObject(4100, 1565.92004, -1467.35266, 23.71900,   152.00000, -85.00000, -4.00000);
CreateObject(4100, 1557.51501, -1465.49182, 23.71900,   152.00000, -85.00000, -4.00000);
CreateObject(4100, 1561.09241, -1567.32178, 26.23460,   152.00000, -85.00000, 2.00000);
CreateObject(4100, 1563.91223, -1567.15796, 26.44650,   152.00000, -85.00000, 2.00000);
CreateObject(4100, 1566.70483, -1566.93079, 26.64770,   152.00000, -85.00000, 2.00000);
CreateObject(2060, 1555.56873, -1560.17578, 28.35490,   -69.00000, 0.00000, -171.00000);
CreateObject(2060, 1556.61108, -1559.98083, 28.35490,   -69.00000, 0.00000, -171.00000);
CreateObject(2060, 1557.71179, -1559.80566, 28.35490,   -69.00000, 0.00000, -171.00000);
CreateObject(974, 1570.70813, -1559.92725, 26.95852,   0.00000, 0.00000, 12.00000);
CreateObject(974, 1552.92542, -1459.09729, 23.82630,   0.00000, 0.00000, -12.00000);
CreateObject(974, 1566.55811, -1460.47522, 23.62318,   0.00000, 0.00000, -12.00000);
CreateObject(10889, 1569.99414, -1509.43298, 28.24011,   0.00000, 0.00000, 0.00000);
CreateObject(10889, 1553.24426, -1510.71301, 28.24011,   0.00000, 0.00000, 0.00000);
CreateObject(1290, 1605.26489, -1453.19971, 27.96575,   -90.00000, -98.00000, 91.00000);
CreateObject(4128, 1574.48865, -1524.00366, 9.42999,   360.00000, 12.00000, -141.00000);
CreateObject(19840, 1589.05725, -1487.19214, 13.97767,   0.00000, 0.00000, 0.00000);
CreateObject(19842, 1591.64661, -1492.49377, 12.60050,   0.00000, 0.00000, 0.00000);
CreateObject(19842, 1584.69629, -1490.32324, 12.60050,   0.00000, 0.00000, -52.00000);
CreateObject(19842, 1590.66382, -1489.65308, 12.60050,   0.00000, 0.00000, 40.00000);
CreateObject(19842, 1590.66382, -1489.65308, 12.60050,   0.00000, 0.00000, 40.00000);
CreateObject(19842, 1596.53687, -1492.60596, 12.60050,   0.00000, 0.00000, 25.00000);
CreateObject(4505, 1610.31177, -1573.15686, 29.87080,   0.00000, 0.00000, -91.00000);
CreateObject(4505, 1594.21204, -1572.61169, 29.87080,   0.00000, 0.00000, -91.00000);
CreateObject(4505, 1593.78882, -1448.29846, 29.87080,   0.00000, 0.00000, 90.00000);
CreateObject(4505, 1610.24231, -1447.06738, 29.87080,   0.00000, 0.00000, 90.00000);
CreateObject(11631, 1834.64099, -1306.25903, 120.44400,   0.00000, 0.00000, -90.00000);
CreateObject(3392, 1834.66064, -1302.65393, 119.26653,   0.00000, 0.00000, 0.00000);
CreateObject(3390, 1834.67981, -1299.31274, 119.26560,   0.00000, 0.00000, 0.00000);
CreateObject(3386, 1834.79150, -1296.95520, 119.26596,   0.00000, 0.00000, 0.00000);
CreateObject(1810, 1833.32092, -1302.20178, 119.26640,   0.00000, 0.00000, 91.00000);
CreateObject(1810, 1833.58936, -1299.00793, 119.26640,   0.00000, 0.00000, 91.00000);
CreateObject(1810, 1833.58655, -1306.10547, 119.26640,   0.00000, 0.00000, 135.00000);
CreateObject(347, 1834.69946, -1300.49133, 119.04890,   -360.00000, 0.00000, 0.00000);
CreateObject(347, 1834.43506, -1300.52649, 120.14120,   90.00000, 0.00000, 52.00000);
CreateObject(3097, 1835.58459, -1283.94690, 122.67393,   0.00000, 0.00000, 0.00000);
CreateObject(9247, 2402.81689, -1709.67383, 19.19270,   0.00000, 0.00000, 268.00000);
CreateObject(971, 769.44373, -1334.10840, -2.46974,   0.00000, 0.00000, 51.00000);
CreateObject(971, 775.07043, -1327.28845, -2.51670,   0.00000, 0.00000, 51.00000);
CreateObject(971, 775.07043, -1327.28845, 1.03691,   0.00000, 0.00000, 51.00000);
CreateObject(971, 769.44373, -1334.10840, -0.18416,   0.00000, 0.00000, 51.00000);
CreateObject(971, 775.07043, -1327.28845, -2.51670,   0.00000, 0.00000, 51.00000);
CreateObject(971, 847.47247, -1405.14709, -2.46974,   0.00000, 0.00000, 51.00000);
CreateObject(971, 853.00543, -1398.27905, -2.46974,   0.00000, 0.00000, 51.00000);
CreateObject(971, 853.00543, -1398.27905, 0.85602,   0.00000, 0.00000, 51.00000);
CreateObject(971, 847.47247, -1405.14709, 0.22320,   0.00000, 0.00000, 231.00000);
CreateObject(19545, 793.89838, -1352.85315, -2.37039,   0.00000, 0.00000, 50.00000);
CreateObject(19545, 842.02856, -1391.81787, -2.31390,   0.00000, 0.00000, 50.00000);
CreateObject(19545, 794.77142, -1356.46143, -0.76840,   0.00000, 90.00000, 50.00000);
CreateObject(19545, 842.35779, -1396.41638, -0.76840,   0.00000, 90.00000, 50.00000);
CreateObject(17969, 782.54041, -1346.16125, 0.38830,   0.00000, 0.00000, -130.00000);
CreateObject(2907, 787.73560, -1348.25684, -2.29927,   0.00000, 0.00000, 0.00000);
CreateObject(2908, 787.66870, -1348.80762, -2.35280,   0.00000, 0.00000, -28.00000);
CreateObject(3092, 841.07300, -1341.65796, 6.45150,   90.00000, 0.00000, 0.00000);
CreateObject(2985, 848.20477, -1396.67175, -2.31650,   0.00000, 0.00000, -32.00000);
CreateObject(2985, 847.42474, -1397.82532, -2.31650,   0.00000, 0.00000, -32.00000);
CreateObject(18260, 793.95532, -1336.15808, 0.04757,   0.00000, 0.00000, 0.00000);
CreateObject(1636, 823.97607, -1355.02576, -1.46438,   0.00000, 0.00000, 0.00000);
CreateObject(1636, 823.68213, -1355.05066, -1.46438,   0.00000, 0.00000, 0.00000);
CreateObject(1636, 823.36481, -1354.97827, -1.46438,   0.00000, 0.00000, 0.00000);
CreateObject(1636, 823.50177, -1355.51709, -1.46440,   0.00000, 0.00000, -84.00000);
CreateObject(14458, 836.61450, -1370.92053, -0.56860,   0.00000, 0.00000, 0.00000);

    return 1;
}
I hope you guys can help me fast because I can't find a solution for this, I searched almost everywhere. I will REP+ if you help me and it works
Reply
#2

include a_samp first and see the correct parameter of https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer and ofc you cant use them in ongamemodeint() as it dont have playerid arguement add that piece in onplayerconnect and semicolon @ end of function is wrong syntax.
Reply
#3

- Always include a_samp first and then any other include.
- Never end with semicolon (public) functions.
- The first parameter of RemoveBuildingForPlayer is playerid which you have removed.
- You need to move all the RemoveBuildingForPlayer code in OnPlayerConnect.
- Since you include streamer, replace (CTRL + H) "CreateObject" with "CreateDynamicObject".
Reply
#4

Alright!

So I fixed a lot of things, thank you. However this is how the code looks now:

Код:
#include < a_samp >
#include < streamer >
#pragma tabsize 0

public OnFilterScriptInIt()
{
CreateDynamicObject(3260, 1561.90186, -1267.93188, 277.52554,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1561.79492, -1269.69153, 278.87344,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1561.66089, -1271.91235, 280.77386,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1561.56287, -1274.02576, 282.58060,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1561.45825, -1275.64270, 283.99652,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1561.37805, -1277.54077, 285.61472,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1561.21716, -1279.67542, 287.40948,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1561.07031, -1281.87061, 289.27997,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1560.96667, -1284.06885, 291.15829,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1560.88367, -1286.08801, 292.92773,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(3260, 1560.69727, -1288.24634, 294.77170,   49.50000, -2.82000, 0.00000);
CreateDynamicObject(4100, 1560.10229, -1294.68860, 300.11728,   92.00000, 0.00000, -91.00000);
CreateDynamicObject(4100, 1559.65051, -1304.52283, 308.32178,   92.00000, 0.00000, -91.00000);
CreateDynamicObject(4100, 1559.28174, -1313.41919, 315.72647,   92.00000, 0.00000, -91.00000);
CreateDynamicObject(4100, 1558.76306, -1323.26855, 323.95270,   92.00000, 0.00000, -91.00000);
CreateDynamicObject(4100, 1558.03857, -1334.79663, 328.56647,   47.00000, 92.00000, -10.00000);
CreateDynamicObject(2180, 1544.74976, -1360.55676, 328.92831,   91.00000, 0.00000, -31.00000);
CreateDynamicObject(4100, 1556.00757, -1348.32385, 329.28650,   47.00000, 92.00000, -10.00000);
CreateDynamicObject(2180, 1555.11365, -1353.11963, 328.92831,   91.00000, 0.00000, 11.00000);
CreateDynamicObject(16095, 1531.77100, -1357.87244, 328.45190,   0.00000, 0.00000, -178.00000);
CreateDynamicObject(16095, 1591.84302, -1255.54138, 276.87140,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(16095, 1591.86609, -1248.66528, 276.87140,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(16095, 1591.90845, -1241.76746, 276.87140,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1435, 1565.98523, -1259.53894, 276.87225,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1435, 1564.12366, -1259.56226, 276.87225,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1435, 1561.50452, -1259.50781, 276.87225,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1435, 1560.13416, -1264.89868, 276.87231,   0.00000, 0.00000, -90.00000);
CreateDynamicObject(1435, 1560.13416, -1264.89868, 276.87231,   0.00000, 0.00000, -90.00000);
CreateDynamicObject(974, 1560.21191, -1265.90369, 277.45819,   0.00000, 0.00000, -90.00000);
CreateDynamicObject(974, 1560.17505, -1262.70374, 277.45819,   0.00000, 0.00000, -90.00000);
CreateDynamicObject(974, 1563.49707, -1259.38513, 277.45819,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1435, 1565.11194, -1267.15222, 276.87225,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(974, 1566.24158, -1267.28711, 277.45819,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(3934, 1569.72607, -1236.66833, 276.88440,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(3996, 1561.74158, -1509.01489, 26.34012,   4.26000, -3.20000, -88.00000);
CreateDynamicObject(4100, 1560.30603, -1466.07434, 23.73900,   152.00000, -85.00000, -4.00000);
CreateDynamicObject(4100, 1563.12231, -1466.68359, 23.71900,   152.00000, -85.00000, -4.00000);
CreateDynamicObject(4100, 1565.92004, -1467.35266, 23.71900,   152.00000, -85.00000, -4.00000);
CreateDynamicObject(4100, 1557.51501, -1465.49182, 23.71900,   152.00000, -85.00000, -4.00000);
CreateDynamicObject(4100, 1561.09241, -1567.32178, 26.23460,   152.00000, -85.00000, 2.00000);
CreateDynamicObject(4100, 1563.91223, -1567.15796, 26.44650,   152.00000, -85.00000, 2.00000);
CreateDynamicObject(4100, 1566.70483, -1566.93079, 26.64770,   152.00000, -85.00000, 2.00000);
CreateDynamicObject(2060, 1555.56873, -1560.17578, 28.35490,   -69.00000, 0.00000, -171.00000);
CreateDynamicObject(2060, 1556.61108, -1559.98083, 28.35490,   -69.00000, 0.00000, -171.00000);
CreateDynamicObject(2060, 1557.71179, -1559.80566, 28.35490,   -69.00000, 0.00000, -171.00000);
CreateDynamicObject(974, 1570.70813, -1559.92725, 26.95852,   0.00000, 0.00000, 12.00000);
CreateDynamicObject(974, 1552.92542, -1459.09729, 23.82630,   0.00000, 0.00000, -12.00000);
CreateDynamicObject(974, 1566.55811, -1460.47522, 23.62318,   0.00000, 0.00000, -12.00000);
CreateDynamicObject(10889, 1569.99414, -1509.43298, 28.24011,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(10889, 1553.24426, -1510.71301, 28.24011,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1290, 1605.26489, -1453.19971, 27.96575,   -90.00000, -98.00000, 91.00000);
CreateDynamicObject(4128, 1574.48865, -1524.00366, 9.42999,   360.00000, 12.00000, -141.00000);
CreateDynamicObject(19840, 1589.05725, -1487.19214, 13.97767,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19842, 1591.64661, -1492.49377, 12.60050,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19842, 1584.69629, -1490.32324, 12.60050,   0.00000, 0.00000, -52.00000);
CreateDynamicObject(19842, 1590.66382, -1489.65308, 12.60050,   0.00000, 0.00000, 40.00000);
CreateDynamicObject(19842, 1590.66382, -1489.65308, 12.60050,   0.00000, 0.00000, 40.00000);
CreateDynamicObject(19842, 1596.53687, -1492.60596, 12.60050,   0.00000, 0.00000, 25.00000);
CreateDynamicObject(4505, 1610.31177, -1573.15686, 29.87080,   0.00000, 0.00000, -91.00000);
CreateDynamicObject(4505, 1594.21204, -1572.61169, 29.87080,   0.00000, 0.00000, -91.00000);
CreateDynamicObject(4505, 1593.78882, -1448.29846, 29.87080,   0.00000, 0.00000, 90.00000);
CreateDynamicObject(4505, 1610.24231, -1447.06738, 29.87080,   0.00000, 0.00000, 90.00000);
CreateDynamicObject(11631, 1834.64099, -1306.25903, 120.44400,   0.00000, 0.00000, -90.00000);
CreateDynamicObject(3392, 1834.66064, -1302.65393, 119.26653,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(3390, 1834.67981, -1299.31274, 119.26560,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(3386, 1834.79150, -1296.95520, 119.26596,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1810, 1833.32092, -1302.20178, 119.26640,   0.00000, 0.00000, 91.00000);
CreateDynamicObject(1810, 1833.58936, -1299.00793, 119.26640,   0.00000, 0.00000, 91.00000);
CreateDynamicObject(1810, 1833.58655, -1306.10547, 119.26640,   0.00000, 0.00000, 135.00000);
CreateDynamicObject(347, 1834.69946, -1300.49133, 119.04890,   -360.00000, 0.00000, 0.00000);
CreateDynamicObject(347, 1834.43506, -1300.52649, 120.14120,   90.00000, 0.00000, 52.00000);
CreateDynamicObject(3097, 1835.58459, -1283.94690, 122.67393,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(9247, 2402.81689, -1709.67383, 19.19270,   0.00000, 0.00000, 268.00000);
CreateDynamicObject(971, 769.44373, -1334.10840, -2.46974,   0.00000, 0.00000, 51.00000);
CreateDynamicObject(971, 775.07043, -1327.28845, -2.51670,   0.00000, 0.00000, 51.00000);
CreateDynamicObject(971, 775.07043, -1327.28845, 1.03691,   0.00000, 0.00000, 51.00000);
CreateDynamicObject(971, 769.44373, -1334.10840, -0.18416,   0.00000, 0.00000, 51.00000);
CreateDynamicObject(971, 775.07043, -1327.28845, -2.51670,   0.00000, 0.00000, 51.00000);
CreateDynamicObject(971, 847.47247, -1405.14709, -2.46974,   0.00000, 0.00000, 51.00000);
CreateDynamicObject(971, 853.00543, -1398.27905, -2.46974,   0.00000, 0.00000, 51.00000);
CreateDynamicObject(971, 853.00543, -1398.27905, 0.85602,   0.00000, 0.00000, 51.00000);
CreateDynamicObject(971, 847.47247, -1405.14709, 0.22320,   0.00000, 0.00000, 231.00000);
CreateDynamicObject(19545, 793.89838, -1352.85315, -2.37039,   0.00000, 0.00000, 50.00000);
CreateDynamicObject(19545, 842.02856, -1391.81787, -2.31390,   0.00000, 0.00000, 50.00000);
CreateDynamicObject(19545, 794.77142, -1356.46143, -0.76840,   0.00000, 90.00000, 50.00000);
CreateDynamicObject(19545, 842.35779, -1396.41638, -0.76840,   0.00000, 90.00000, 50.00000);
CreateDynamicObject(17969, 782.54041, -1346.16125, 0.38830,   0.00000, 0.00000, -130.00000);
CreateDynamicObject(2907, 787.73560, -1348.25684, -2.29927,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(2908, 787.66870, -1348.80762, -2.35280,   0.00000, 0.00000, -28.00000);
CreateDynamicObject(3092, 841.07300, -1341.65796, 6.45150,   90.00000, 0.00000, 0.00000);
CreateDynamicObject(2985, 848.20477, -1396.67175, -2.31650,   0.00000, 0.00000, -32.00000);
CreateDynamicObject(2985, 847.42474, -1397.82532, -2.31650,   0.00000, 0.00000, -32.00000);
CreateDynamicObject(18260, 793.95532, -1336.15808, 0.04757,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1636, 823.97607, -1355.02576, -1.46438,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1636, 823.68213, -1355.05066, -1.46438,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1636, 823.36481, -1354.97827, -1.46438,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(1636, 823.50177, -1355.51709, -1.46440,   0.00000, 0.00000, -84.00000);
CreateDynamicObject(14458, 836.61450, -1370.92053, -0.56860,   0.00000, 0.00000, 0.00000);
    return 1;
}
And the only Warning I get is this:

Код:
C:\Users\Domagoj\Desktop\MojaMapa.pwn(5) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInIt")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
I am really sorry for wasting your time guys. If you want correct me in the script so I can copy it or something because I kinda need to solve this fast. Thanks for the quick response tho
Reply
#5

OnFilterScriptInIt
is wrong
it is OnFilterScriptInit
yeah it is case sensitive
and remove #pragama tabsize 0 from your script
Reply
#6

OMFG Sreyas thank you soooo much! I REP+'d you.

btw Without the pragma tabsize I still get warnings, however when I put it here it was good. Thank youu.
Reply
#7

Since you are new, try not to use bad habits of other people (referring to pragma tabsize). All you have to do is indent the code properly (1 tab = 4 spaces): https://sampwiki.blast.hk/wiki/Errors_Li...se_indentation

If you use filterscripts, always use:
Код:
#define FILTERSCRIPT

#include <a_samp>

...
because most of the includes check if it is defined to keep track whether is it included in a filterscript or gamemode (so they can hook the appropriate callback).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)