Taxi Bug
#10

Quote:
Originally Posted by iFiras
Посмотреть сообщение
pawn Код:
format(string, sizeof(string), "____________ TAXI DISPATCH PANEL _____________", PlayerInfo[playerid][pPnumber]);
            SendJobMessage(17, COLOR_YELLOW, string);
            format(string, sizeof(string), "REQUESTING: {FFFFFF}Taxi Services");
            SendJobMessage(17, COLOR_YELLOW, string);
            format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
            SendJobMessage(17, COLOR_YELLOW, string);
            format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pPnumber]);
            SendJobMessage(17, COLOR_YELLOW, string);
            format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pPnumber]);
            SendJobMessage(17, COLOR_YELLOW, string);
            format(string, sizeof(string), "To accept this service request; (type /ataxi %d)", playerid);
            SendJobMessage(17, COLOR_WHITE, string);
What's that 17?
that's the message which should be sent to the taxi drivers instead of
pawn Код:
format(string, sizeof(string), "** %s is in need of a taxi driver - click Accept to accept the call.", GetPlayerNameEx(playerid));
        foreach(Player, i)
        {
            if(TransportDuty[i] > 0 && (PlayerInfo[i][pJob] == 17 || PlayerInfo[i][pJob2] == 17 || PlayerInfo[i][pTaxiLicense] == 1 ))
            {
                ShowPlayerDialog(i, DIALOG_ACCEPTDIALOG, DIALOG_STYLE_MSGBOX, "{FFFFFF}Taxi Call", string, "Accept", "Reject");
                PlayerInfo[i][pAcceptID] =12;
            }
        }
and the "17" thing is the taxi job's id
the player id is defined as [playerid]
Reply


Messages In This Thread
Taxi Bug - by Drago987 - 01.06.2014, 12:22
Re: Taxi Bug - by Drago987 - 01.06.2014, 15:12
Re: Taxi Bug - by Drago987 - 01.06.2014, 20:32
Re: Taxi Bug - by Drago987 - 02.06.2014, 14:39
Re: Taxi Bug - by Naresh - 02.06.2014, 14:44
Re: Taxi Bug - by Zens - 02.06.2014, 15:11
Re: Taxi Bug - by Kyance - 02.06.2014, 18:08
Re: Taxi Bug - by Drago987 - 02.06.2014, 19:43
Re: Taxi Bug - by iFiras - 02.06.2014, 20:02
Re: Taxi Bug - by Drago987 - 02.06.2014, 20:17

Forum Jump:


Users browsing this thread: 2 Guest(s)