error 017: undefined symbol "addsiren"
#1

I'm trying to put a siren in a vehicle and I get these errors when compiling.
Код:
C:\Users\HELLO WORLD\Desktop\DM\gamemodes\dm.pwn(47) : error 017: undefined symbol "addsiren"
C:\Users\HELLO WORLD\Desktop\DM\gamemodes\dm.pwn(47) : warning 215: expression has no effect
C:\Users\HELLO WORLD\Desktop\DM\gamemodes\dm.pwn(47) : error 001: expected token: ";", but found ")"
C:\Users\HELLO WORLD\Desktop\DM\gamemodes\dm.pwn(47) : error 029: invalid expression, assumed zero
C:\Users\HELLO WORLD\Desktop\DM\gamemodes\dm.pwn(47) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
The whole callback
Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("DM Script Basic");
    AddPlayerClass(28,1128.9307,-1489.6925,22.7690,13.0845,22,50,30,300,18,10); // CHARACTER SPAWN FOR TERRORIST
    AddPlayerClass(100,1128.9307,-1489.6925,22.7690,13.0845,22,50,30,300,18,10); // CHARACTER SPAWN FOR TERRORIST
    AddPlayerClass(102,1128.9307,-1489.6925,22.7690,13.0845,22,50,30,300,18,10); // CHARACTER SPAWN FOR TERRORIST
	AddPlayerClass(106,1128.9307,-1489.6925,22.7690,13.0845,22,50,30,300,18,10); // CHARACTER SPAWN FOR TERRORIST
 	AddPlayerClass(108,1128.9307,-1489.6925,22.7690,13.0845,22,50,30,300,18,10); // CHARACTER SPAWN FOR TERRORIST
	AddStaticVehicle(500,1128.1274,-1465.8353,15.8777,0.3092,200,84); // PARKING MESA
    AddStaticVehicle(500,1132.0234,-1465.4791,15.8657,359.5697,200,84); // PARKING MESA 2
    AddStaticVehicle(500,1128.4338,-1456.4412,15.9045,1.1287,200,84); // PARKING MESA 3
    AddStaticVehicle(500,1134.0710,-1458.5348,15.9067,0.5568,200,84); // PARKING MESA 4
    AddStaticVehicle(487,1131.3718,-1445.5594,15.9729,357.6754,200,1); // CHOPPER PARKING
    AddStaticVehicle(489,1125.0222,-1443.4528,15.9410,2.5768,200,123); // RANCHER 1
    AddStaticVehicle(489,1118.4000,-1439.7693,15.9407,2.7070,200,123); // RANCHER 2
    AddStaticVehicleEx(597,1592.1249,-1710.0338,5.6608,359.9929,0,1,10,addsiren=1); // POLICECAR 1
 	AddStaticVehicle(597,1595.2458,-1709.7819,5.6597,0.8442,0,1); // POLICECAR 2
	AddStaticVehicle(597,1602.9396,-1704.1997,5.6587,269.9510,0,1); // POLICECAR 3
	AddStaticVehicle(597,1602.2435,-1700.0936,5.6605,266.8054,0,1); // POLICECAR 4
	AddStaticVehicle(599,1586.6467,-1672.2772,6.0747,89.3391,0,1); // RANCHERPOLICE 1
	AddStaticVehicle(599,1585.8070,-1667.8562,6.0838,88.5696,0,1); // RANCHERPOLICE 2
	AddStaticVehicle(497,1558.4922,-1608.8832,13.5560,89.7260,0,1); // POLICECHOPPER 1
    AddPlayerClass(282,1568.2911,-1690.6763,5.8906,185.3586,24,50,31,300,17,10); // POLICE SPAWN
    AddPlayerClass(285,1568.2911,-1690.6763,5.8906,185.3586,24,50,31,300,17,10); // POLICE SPAWN
    AddPlayerClass(284,1568.2911,-1690.6763,5.8906,185.3586,24,50,31,300,17,10); // POLICE SPAWN
    AddPlayerClass(281,1568.2911,-1690.6763,5.8906,185.3586,24,50,31,300,17,10); // POLICE SPAWN
	AddPlayerClass(280,1568.2911,-1690.6763,5.8906,185.3586,24,50,31,300,17,10); // POLICE SPAWN
	AddStaticVehicle(523,1559.4089,-1710.8010,5.4764,359.9998,0,0); // COPBIKE 1
	AddStaticVehicle(523,1564.7064,-1710.8358,5.4542,179.1089,0,0); // COPBIKE 2
	AddStaticVehicle(521,1129.3217,-1438.8459,15.3895,359.9910,75,13); // TERRORIST BIKE
	AddStaticVehicle(521,1131.4756,-1438.6265,15.3713,1.4288,75,13); // TERRORIST BIKE 2
	return 1;
}
Any idea how to fix it and succesfully put a siren in my cop cars? +rep for your answers
Reply
#2

Sirens will only work in SA:MP version 0.3.7 and above. You should update to get that functionality.
Reply
#3

Update your SA-MP includes, the ones that come in the server package. Also use the latest server version.

And btw, you don't need to use addsiren on real police cars. Sorry if I misunderstood but that's what it sounded like you said you were doing when I first read it.
Reply
#4

Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
Sirens will only work in SA:MP version 0.3.7 and above. You should update to get that functionality.
I already have the latest include and samp.
Reply
#5

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Update your SA-MP includes, the ones that come in the server package. Also use the latest server version.

And btw, you don't need to use addsiren on real police cars. Sorry if I misunderstood but that's what it sounded like you said you were doing when I first read it.
I already have the latest include and server package. Yes you are right, thats what I am trying to do.. I am completely new to scripting tho. I just started today. Anyways, how do I put sirens on my cop vehicles then?
Reply
#6

Cop vehicles already have sirens. Just press your Horn key and it should turn on. You don't have to add it.
Reply
#7

Why would you want to put sirens on a "real" cop car?
Reply
#8

Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
Cop vehicles already have sirens. Just press your Horn key and it should turn on. You don't have to add it.
The siren would turn on, but is there any way to put flashing lights on the vehicle?
Reply
#9

Quote:
Originally Posted by Gen3i
Посмотреть сообщение
Why would you want to put sirens on a "real" cop car?
Yes, The siren would turn on, but is there any way to put flashing lights on the vehicle?
Reply
#10

Check This out: https://sampforum.blast.hk/showthread.php?tid=571926
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)