[Help please] Need help with error 021: symbol already defined: "Audio_OnGameModeInit"
#1

Hello, I'm getting this error,

error 021: symbol already defined: "Audio_OnGameModeInit"

I have basically copied a map and converted it to my samp server then pasted it into pawn but it keeps on showing that error when I compile it. Here is the script below of that lspd faction map.

public OnGameModeInit()

{
CreateVehicle(596,1535.5000000,-1666.9000244,13.1999998,0.0000000,-1,1,15); //Police Car (LSPD)
CreateVehicle(596,1535.6999512,-1677.8000488,13.1999998,0.0000000,-1,1,15); //Police Car (LSPD)
CreateVehicle(525,1582.4000244,-1606.6999512,13.3999996,178.0000000,1,-1,15); //Tow Truck
CreateVehicle(482,1526.4000244,-1645.9000244,6.0000000,178.0000000,-1,-1,15); //Burrito
CreateVehicle(582,1530.8000488,-1645.8000488,6.0000000,180.0000000,-1,-1,15); //Newsvan
CreateVehicle(428,1534.6999512,-1645.3000488,6.0999999,180.0000000,-1,-1,15); //Securicar
CreateVehicle(427,1544.4000244,-1651.0999756,6.0000000,88.0000000,-1,2,15); //Enforcer
CreateVehicle(427,1544.3000488,-1655.0999756,6.0999999,88.0000000,-1,2,15); //Enforcer
CreateVehicle(528,1544.5999756,-1659.3000488,6.0000000,90.0000000,2,2,15); //FBI Truck
CreateVehicle(601,1545.0000000,-1663.3000488,5.8000002,90.0000000,-1,-1,15); //S.W.A.T. Van
CreateVehicle(490,1544.8000488,-1668.0000000,6.1999998,90.0000000,2,2,15); //FBI Rancher
CreateVehicle(490,1544.6999512,-1676.0999756,6.0000000,90.0000000,-1,-1,15); //FBI Rancher
CreateVehicle(490,1544.9000244,-1671.9000244,6.0000000,90.0000000,2,2,15); //FBI Rancher
CreateVehicle(490,1544.5999756,-1680.3000488,6.0000000,90.0000000,-1,-1,15); //FBI Rancher
CreateVehicle(599,1529.3000488,-1684.0999756,6.0000000,270.0000000,-1,1,15); //Police Ranger
CreateVehicle(599,1529.6999512,-1687.8000488,6.0000000,270.0000000,-1,-1,15); //Police Ranger
CreateVehicle(523,1559.5999756,-1692.0000000,5.5999999,188.0000000,-1,-1,15); //HPV1000
CreateVehicle(523,1557.3000488,-1691.9000244,5.5999999,187.9980469,-1,-1,15); //HPV1000
CreateVehicle(523,1564.0000000,-1691.9000244,5.5999999,187.9980469,-1,-1,15); //HPV1000
CreateVehicle(523,1561.6999512,-1692.0000000,5.5999999,187.9980469,-1,-1,15); //HPV1000
CreateVehicle(560,1559.0000000,-1709.8000488,5.6999998,0.0000000,-1,1,15); //Sultan
CreateVehicle(560,1565.4000244,-1710.1999512,5.6999998,0.0000000,-1,-1,15); //Sultan
CreateVehicle(541,1570.4000244,-1709.1999512,5.5999999,0.0000000,-1,1,15); //Bullet
CreateVehicle(451,1574.3000488,-1709.5000000,5.6999998,0.0000000,-1,1,15); //Turismo
CreateVehicle(415,1578.6999512,-1709.5000000,5.6999998,0.0000000,-1,1,15); //Cheetah
CreateVehicle(596,1583.0999756,-1709.6999512,5.6999998,0.0000000,1,1,15); //Police Car (LSPD)
CreateVehicle(596,1587.4000244,-1709.3000488,5.6999998,0.0000000,1,1,15); //Police Car (LSPD)
CreateVehicle(596,1591.0000000,-1709.4000244,5.6999998,0.0000000,1,1,15); //Police Car (LSPD)
CreateVehicle(596,1595.3000488,-1709.0000000,5.6999998,0.0000000,1,1,15); //Police Car (LSPD)
CreateVehicle(596,1600.5999756,-1703.9000244,5.6999998,90.0000000,-1,1,15); //Police Car (LSPD)
CreateVehicle(596,1600.8000488,-1684.3000488,5.6999998,90.0000000,-1,-1,15); //Police Car (LSPD)
CreateVehicle(596,1600.5999756,-1688.0999756,5.6999998,90.0000000,-1,-1,15); //Police Car (LSPD)
CreateVehicle(596,1600.5000000,-1700.0999756,5.6999998,90.0000000,-1,-1,15); //Police Car (LSPD)
CreateVehicle(596,1600.9000244,-1696.3000488,5.6999998,90.0000000,-1,-1,15); //Police Car (LSPD)
CreateVehicle(596,1601.0999756,-1692.3000488,5.6999998,90.0000000,-1,-1,15); //Police Car (LSPD)
CreateVehicle(497,1558.4000244,-1706.5000000,28.7000008,86.0000000,-1,-1,15); //Police Maverick
CreateVehicle(497,1557.9000244,-1645.5000000,28.7000008,92.0000000,-1,-1,15); //Police Maverick
CreateDynamicObject(996,1196.5000000,-634.5999756,103.8000031,0.0000000,0.0000000,10.000 0000); //object(lhouse_barrier1)(1)
CreateDynamicObject(997,1192.4000244,-621.2000122,103.0000000,0.0000000,0.0000000,10.000 0000); //object(lhouse_barrier3)(1)
CreateDynamicObject(997,1222.8000488,-615.7999878,103.0000000,0.0000000,0.0000000,10.000 0000); //object(lhouse_barrier3)(2)
CreateDynamicObject(997,1225.0999756,-628.7999878,103.0000000,0.0000000,0.0000000,10.000 0000); //object(lhouse_barrier3)(3)
CreateDynamicObject(997,1534.3000488,-1681.5999756,12.3999996,0.0000000,0.0000000,0.0000 000); //object(lhouse_barrier3)(4)
CreateDynamicObject(997,1534.3000488,-1663.8000488,12.3999996,0.0000000,0.0000000,0.0000 000); //object(lhouse_barrier3)(5)
CreateDynamicObject(994,1537.4000244,-1663.8000488,12.3999996,0.0000000,0.0000000,270.00 00000); //object(lhouse_barrier2)(1)
CreateDynamicObject(994,1537.5000000,-1675.3000488,12.3999996,0.0000000,0.0000000,270.00 00000); //object(lhouse_barrier2)(2)
CreateDynamicObject(1233,1534.6999512,-1663.5999756,14.1000004,0.0000000,0.0000000,270.00 00000); //object(noparkingsign1)(1)
CreateDynamicObject(1238,1534.5000000,-1663.4000244,12.6999998,0.0000000,0.0000000,0.0000 000); //object(trafficcone)(1)
CreateDynamicObject(1238,1534.4000244,-1681.9000244,12.6999998,0.0000000,0.0000000,0.0000 000); //object(trafficcone)(2)
CreateDynamicObject(1238,1534.5000000,-1659.8000488,12.6999998,0.0000000,0.0000000,0.0000 000); //object(trafficcone)(3)
CreateDynamicObject(1238,1534.4000244,-1685.8000488,12.6999998,0.0000000,0.0000000,0.0000 000); //object(trafficcone)(4)
CreateDynamicObject(1238,1534.4000244,-1661.6999512,12.6999998,0.0000000,0.0000000,0.0000 000); //object(trafficcone)(5)
CreateDynamicObject(1238,1534.4000244,-1683.8000488,12.6999998,0.0000000,0.0000000,0.0000 000); //object(trafficcone)(6)
CreateDynamicObject(2857,1581.0999756,-1634.1999512,12.6000004,0.0000000,0.0000000,0.0000 000); //object(gb_kitchtakeway02)(1)
CreateDynamicObject(1495,1582.5999756,-1637.9000244,12.3999996,0.0000000,0.0000000,0.0000 000); //object(gen_doorext01)(1)
CreateDynamicObject(968,1544.6999512,-1631.0000000,13.3000002,0.0000000,269.0000000,270. 0000000); //object(barrierturn)(2)
CreateDynamicObject(980,1589.9000244,-1637.9000244,15.0500002,0.0000000,0.0000000,0.0000 000); //object(airportgate)(1)
CreateDynamicObject(994,1544.9000244,-1617.9000244,12.3999996,0.0000000,0.0000000,270.00 00000); //object(lhouse_barrier2)(3)
CreateDynamicObject(994,1545.0000000,-1632.5999756,12.5000000,0.0000000,0.0000000,270.00 00000); //object(lhouse_barrier2)(4)
CreateDynamicObject(987,1549.8000488,-1617.9000244,12.5000000,0.0000000,0.0000000,0.0000 000); //object(elecfence_bar)(1)
CreateDynamicObject(987,1561.8000488,-1617.9000244,12.5000000,0.0000000,0.0000000,0.0000 000); //object(elecfence_bar)(2)
CreateDynamicObject(987,1567.9000244,-1618.0000000,12.6000004,0.0000000,0.0000000,0.0000 000); //object(elecfence_bar)(3)
CreateDynamicObject(987,1586.4000244,-1614.5000000,12.3999996,0.0000000,0.0000000,90.000 0000); //object(elecfence_bar)(4)
CreateDynamicObject(985,1582.3000488,-1618.3000488,12.3999996,0.0000000,0.0000000,178.00 00000); //object(gate_autor)(1)
CreateDynamicObject(987,1586.5999756,-1618.5000000,12.3999996,0.0000000,0.0000000,90.000 0000); //object(elecfence_bar)(5)
return 1;

}

Also the server I'm running won't support the DynamicObject which is the latest one sadly and I'm following the instruction but don't understand what the problem is, its been happening with every other map script people release, help needed ASAP, thanks!
Reply
#2

Make sure you don't have 2
pawn Код:
new Audio_OnGameModeInit;
Reply
#3

Quote:
Originally Posted by Fabio11
Посмотреть сообщение
Make sure you don't have 2
pawn Код:
new Audio_OnGameModeInit;
I can't find it anywhere in my script, is there a way you could help me through teamviewer or something please?
Reply
#4

As you wish, send details in PM.
Reply
#5

Quote:
Originally Posted by Fabio11
Посмотреть сообщение
As you wish, send details in PM.
Done and thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)