[HELP] Questions and warnings - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Questions and warnings (
/showthread.php?tid=359777)
[HELP] Questions and warnings -
Setorrel - 15.07.2012
I need to know how to synchronize the radio of the players (with audio plugin,) for example:
Someone enter to my car and automatically hear the same radio as me.
I get out of the car and going up again I keep hearing the same radio.
The other thing is I have a warning, here I leave the line and the warning.
Warning: warning 203: symbol is never used: "params"
Lines:
dcmd_syo(playerid,params[])
{
if(Estado[playerid] == true){
SendClientMessage(playerid,POSITIVO,"asdasd!");
Delete3DTextLabel(Festado[playerid]);
Estado[playerid] = false; return 1; }
if(Estado[playerid] == false) return SendClientMessage(playerid,COLOR_GREY,"asdasda");
return 1;
}
Thanks...
Re: [HELP] Questions and warnings -
clarencecuzz - 15.07.2012
The only thing you could possibly do is stream into a live radio station, then they would both be hearing the same transmission at the same time.
Re: [HELP] Questions and warnings -
The__ - 15.07.2012
pawn Код:
dcmd_syo(playerid,params[])
{
#pragma unused params
if(Estado[playerid] == true){
SendClientMessage(playerid,POSITIVO,"asdasd!");
Delete3DTextLabel(Festado[playerid]);
Estado[playerid] = false; return 1; }
if(Estado[playerid] == false) return SendClientMessage(playerid,COLOR_GREY,"asdasda");
return 1;
}
Try doing something with this :
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(VehiclePlayingMusic)
{
.....
}
...
}
Respuesta: Re: [HELP] Questions and warnings -
Setorrel - 15.07.2012
Quote:
Originally Posted by The__
pawn Код:
dcmd_syo(playerid,params[]) { #pragma unused params if(Estado[playerid] == true){ SendClientMessage(playerid,POSITIVO,"asdasd!"); Delete3DTextLabel(Festado[playerid]); Estado[playerid] = false; return 1; } if(Estado[playerid] == false) return SendClientMessage(playerid,COLOR_GREY,"asdasda"); return 1; }
|
Thanks a lot.
Quote:
Originally Posted by The__
Try doing something with this :
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) { if(VehiclePlayingMusic) { ..... } ... }
|
explain this a little more please xD