Siren problem
#1

I add the siren to vehicle but i can't hear the voice of the siren.
I press H all times but i only hear the horn of the car, not a siren.
I don't know what is the problem, and i don't have idea how to fix.

Код:
fbicar[1] = CreateVehicle(560,1265.9680000,-1670.0131000,13.1421000,0.0000000,2,2,12000, 1) //Sultan
Reply
#2

Show us the code of the "Siren Code"
Reply
#3

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
Show us the code of the "Siren Code"
I posted the code on the end of code is 1.

1 enable the siren of police
0 disable.

and i have

Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
    if(newstate) GameTextForPlayer(playerid, "~W~Siren ~G~on", 1000, 3);
    GameTextForPlayer(playerid, "~W~Siren ~r~off", 1000, 3);
    return 1;
}
Reply
#4

Quote:
Originally Posted by bigboy81
Посмотреть сообщение
I posted the code on the end of code is 1.

1 enable the siren of police
0 disable.

and i have

Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
    if(newstate) GameTextForPlayer(playerid, "~W~Siren ~G~on", 1000, 3);
    GameTextForPlayer(playerid, "~W~Siren ~r~off", 1000, 3);
    return 1;
}
Well where is this? Is it located to the script you trying to test?
https://sampwiki.blast.hk/wiki/GetVehicleParamsSirenState
Reply
#5

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
Well where is this? Is it located to the script you trying to test?
https://sampwiki.blast.hk/wiki/GetVehicleParamsSirenState
Yes, i add siren to te vehicle but i can't hear that siren.
Reply
#6

Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
    if(newstate) GameTextForPlayer(playerid, "~W~Siren ~G~on", 1000, 3);
    else GameTextForPlayer(playerid, "~W~Siren ~r~off", 1000, 3);
    return 1;
}
Reply
#7

Quote:
Originally Posted by eco1999
Посмотреть сообщение
Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
    if(newstate) GameTextForPlayer(playerid, "~W~Siren ~G~on", 1000, 3);
    else GameTextForPlayer(playerid, "~W~Siren ~r~off", 1000, 3);
    return 1;
}
That's pretty much the exact same code that's on the wiki page, you've just added the else statement.
Reply
#8

Quote:
Originally Posted by Luis-
Посмотреть сообщение
That's pretty much the exact same code that's on the wiki page, you've just added the else statement.
Код:
native CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawndelay, addsiren=0);


fbicar[1] = CreateVehicle(560,1265.9680000,-1670.0131000,13.1421000,0.0000000,2,2,12000, 1) //Sultan
Reply
#9

Note that I didn't quote your post, and that I quoted somebody else's.
Reply
#10

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)