18.05.2012, 10:02
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
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;
}
}
}"

