Radio help
#1

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;
    }
            }
 }"
Reply
#2

u should return a value also
Reply
#3

Ok now i added the taxi job i did and after that i have the bug check script please
Reply
#4

Bump
Reply
#5

put return StopAudioStreamForPlayer(playerid); after if(TransportDuty[playerid] > 0)
Reply
#6

Can you just eddit the script i did on the theard and give me it fixed please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)