Jump to content
  • 0

Problema factiune taxi


Cordyandrey

Question

Salutare am si eu o problema la factiunea TAXI.

Cand urc la un taximetrist cu /fare nu-mi arata ca-mi ia banii si cand cobor nu apare textul ai paltit atata suma.. Ce pot face? Adica nu-i ia banii asta, nu se pune la raport.



        if(TaxiAccepted[i] < 999)
        {
            if(TaxiAccepted[i] == playerid)
            {
                TaxiAccepted[i] = 999;
                TaxiCallTime[i] = 0;
                DisablePlayerCheckpoint(i);
            }
        }
    }
    if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
    {
        if(IsPlayerConnected(TransportDriver[playerid]))
        {
            new string[256],sendername[30],giveplayer[30];
            GetPlayerName(playerid,sendername,sizeof(sendername));
            GetPlayerName(TransportDriver[playerid],giveplayer,sizeof(giveplayer));
            TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
            TransportTime[TransportDriver[playerid]] = 0;
            TransportCost[TransportDriver[playerid]] = 0;
            format(string, sizeof(string), "# %s gets off the cab and pays $%s to %s.",sendername,FormatNumber(TransportCost[playerid]),giveplayer);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
    }
 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
[spoiler]




if(TransportDuty[playerid] > 0)
        {
            if(TransportDuty[playerid] == 1)
            {
                TaxiDrivers -= 1;
            }
            TransportDuty[playerid] = 0;
            format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            GivePlayerCash(playerid, TransportMoney[playerid]);
            ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
        }

Edited by Cordyandrey
Link to comment
Share on other sites

  • 0



if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
        {
            if(IsPlayerConnected(TransportDriver[playerid]))
            {
                new sendername[30],giveplayer[30];
                GetPlayerName(playerid,sendername,sizeof(sendername));
                GetPlayerName(TransportDriver[playerid],giveplayer,sizeof(giveplayer));
                TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
                TransportTime[TransportDriver[playerid]] = 0;
                TransportCost[TransportDriver[playerid]] = 0;
                format(string, sizeof(string), "~w~The ride cost~n~~r~~h~$%d",TransportCost[playerid]);
                GameTextForPlayer(playerid, string, 5000, 1);
                format(string, sizeof(string), "~w~Passenger left the taxi~n~~g~Earned $%d",TransportCost[playerid]);
                GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
                format(string, sizeof(string), "# %s gets off the cab and pays $%s to %s.",sendername,FormatNumber(TransportCost[playerid]),giveplayer);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                GivePlayerCash(playerid, -TransportCost[playerid]);
                TransportCost[playerid] = 0;
                TransportTime[playerid] = 0;
                TransportDriver[playerid] = 999;
                Update(playerid, pCashx);

Link to comment
Share on other sites

  • 0

Salutare! inca o problema si nu cred ca necesita sa fac alt topic!

Da am asta cu taxi de rezolvat si nu stiu cum.. si mai o problema cu /confiscate licence daca jucatorul respectiv nu are licenta aceasta comanda tot o va lua... si nu stiu ce sa fac

Comanda:



CMD:confiscate(playerid, params[]) {
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
        if(IsACop(playerid))
        {
            if(OnDuty[playerid] != 1) return SendClientMessage(playerid, COLOR_WHITE,"{3385FF}You are not on Duty.");
            new x_nr[15],giveplayerid,string[256],giveplayer[25],sendername[25];
            if(sscanf(params, "us[15]",giveplayerid,x_nr))
            {
                SendClientMessage(playerid, 0xFFFFFFFF, "{008080}Usage: {FFFFFF}/confiscate <Name/Playerid> <Item>");
                SendClientMessage(playerid, COLOR_WHITE,"Items: Licence, Drugs, Materials, Weapons.");
                return 1;
            }
            GetPlayerName(playerid,sendername,sizeof(sendername));
            GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer));
            if(strcmp(x_nr,"licence",true) == 0)
            {
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        if (ProxDetectorS(8.0, playerid, giveplayerid))
                        {
                            format(string, sizeof(string), "* %s has confiscated %s's driving license.", sendername, giveplayer);
                            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            SendTeamMessage(8, COLOR_LIGHTBLUE, string);
                            SendTeamMessage(3, COLOR_LIGHTBLUE, string);
                            SendTeamMessage(2, COLOR_LIGHTBLUE, string);
                            SendTeamMessage(1, COLOR_LIGHTBLUE, string);
                            format(string, sizeof(string), "You have confiscated %s's driving license.", giveplayer);
                            SendClientMessage(playerid, COLOR_WHITE, string);
                            format(string, sizeof(string), "%s has confiscated your driving license.", sendername);
                            SendClientMessage(giveplayerid, COLOR_WHITE, string);
                            PlayerInfo[giveplayerid][pCarLicSuspend] = 2;
                            PlayerInfo[giveplayerid][pCarLic] = 0;
                            PlayerInfo[giveplayerid][pCarLicT] = 0;
                            Update(giveplayerid, pCarLicSuspendx);
                            new str[128];
                            mysql_format(SQL,str,sizeof(str),"UPDATE users SET `CarLic`='0',`CarLicT`='0' WHERE `name`='%s'",PlayerInfo[giveplayerid][pNormalName]);
                            mysql_tquery(SQL,str,"","");

Link to comment
Share on other sites

  • 0

O intrebare, iti faci gamemode-ul pe spatele altora? Cred ca ar trebui sa depui mai mult efort in a invata acest limbaj, nu sa astepti sa iti faca alt cineva codul pentru tine. Scuza 'nu reusesc, ma chinui de 2 zile si nu stiu cum sa fac' nu e valabila. Nu am nimic cu faptul ca ceri ajutorul de la altii, e ok sa faci asta, insa, iti dai seama cat de aiurea e sa faci 3-4 topicuri pe zi in aceasta categorie, iar peste 1-2 luni sa postezi gamemode-ul asta pe net, iar primul aliniat din descriere sa se inceapa cu "Salut, am facut foarte multe schimbari....". Just try yourself ?

Link to comment
Share on other sites

  • 0

Nu, cer ajutor pentru ca vreau sa-l rezolv de ce sa.mi pierd atat timp si sa-l postez pe net? Mi se pare o mare prostie mai ales sa spun ca e munca mea. Se vede clar ca e de pe net. Si sa ma crezi ca am rezolvat si eu majoritatea bugurilor, a mai ramas de numerotat corect factiunile asta o las la sfarsit de facut problema cu sloturile (insa cred ca am gasit problema datorita unui membru de pe acest forum) si de rezolvat bugul cu taxi. A ce am mai postat eu pe aici da.. ce pot sa spun nu scrie cate intrebari pot pune sau altceva. Ce am postat acum sunt doar cateva buguri la care nu gasesc rezolvare. 

Era de apreciat daca primeam un raspuns de la tine, nu aceasta concluzie :)). Vrei sa-ti zic ce vreau eu sa fac cu acest GM? Sa ma joc cu prietenii atat si pentru ca m.am plictisit de samp m.am gandit hai sa ma joc si eu dea scripterul pare distractiv sincer. Dar sa postez pe net ceva? Niciodata, te asigur.

  • Thanks 1
Link to comment
Share on other sites

  • 0
1 hour ago, L0K3D_Hokage said:

O intrebare, iti faci gamemode-ul pe spatele altora? Cred ca ar trebui sa depui mai mult efort in a invata acest limbaj, nu sa astepti sa iti faca alt cineva codul pentru tine. Scuza 'nu reusesc, ma chinui de 2 zile si nu stiu cum sa fac' nu e valabila. Nu am nimic cu faptul ca ceri ajutorul de la altii, e ok sa faci asta, insa, iti dai seama cat de aiurea e sa faci 3-4 topicuri pe zi in aceasta categorie, iar peste 1-2 luni sa postezi gamemode-ul asta pe net, iar primul aliniat din descriere sa se inceapa cu "Salut, am facut foarte multe schimbari....". Just try yourself ?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.