Radio help - 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: Radio help (
/showthread.php?tid=343621)
Radio help -
Vlad_Dubonos - 18.05.2012
Ok guys i need some little help
I have a bug in sound
if(newstate == PLAYER_STATE_ONFOOT) -
Its when i am get out of the vehicle the music (radio from the game stop!)
if(newstate == PLAYER_STATE_ONFOOT) -
But now its not work help i mean when i am get out of the vehicle the music still playing -_-
Thanks for helper's
That's happend to me after i added The taxi job
Код:
"if(newstate == PLAYER_STATE_ONFOOT)
StopAudioStreamForPlayer(playerid);
if(TransportDuty[playerid] > 0)
{
if(TransportDuty[playerid] == 1)
{
TaxiDrivers -= 1;
}
TransportDuty[playerid] = 0;
format(string, sizeof(string), "* Вы теперь не на дежурстве и заработали $%d.", TransportMoney[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, TransportMoney[playerid]);
ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
}
if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
{
if(IsPlayerConnected(TransportDriver[playerid]))
{
TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
TransportTime[TransportDriver[playerid]] = 0;
TransportCost[TransportDriver[playerid]] = 0;
format(string, sizeof(string), "~w~The ride cost~n~~r~$%d",TransportCost[playerid]);
GameTextForPlayer(playerid, string, 5000, 1);
format(string, sizeof(string), "~w~Passenger left the car~n~~g~Earned $%d",TransportCost[playerid]);
GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
GivePlayerMoney(playerid, -TransportCost[playerid]);
TransportCost[playerid] = 0;
TransportTime[playerid] = 0;
TransportDriver[playerid] = 999;
}
}
}"
Re: Radio help -
$$inSane - 18.05.2012
u should return a value also
Re: Radio help -
Vlad_Dubonos - 18.05.2012
Ok now i added the taxi job i did and after that i have the bug check script please
Re: Radio help -
Vlad_Dubonos - 18.05.2012
Bump
Re: Radio help -
$$inSane - 18.05.2012
put return StopAudioStreamForPlayer(playerid); after if(TransportDuty[playerid] > 0)
Re: Radio help -
Vlad_Dubonos - 18.05.2012
Can you just eddit the script i did on the theard and give me it fixed please?