Jump to content
  • 0

Problema CarPlate


Users

Question

Salut , am si eu comanda : [pawn]         else if(strcmp(x_nr,"plate",true) == 0)

        {

new vehid;

vehid = GetPlayerVehicleID(playerid);

if(IsPlayerInVehicle(playerid, vehid) || PlayerInfo[vehid][pPcarkey] != -1 && PlayerInfo[vehid][pPcarkey2] != -1 && PlayerInfo[vehid][pPcarkey3] != -1)

{

        if(cmdtext[idx++] != 32 || cmdtext[idx] == EOS)

                    {

                        SendClientMessage(playerid,0xFFFFFFAA,"USAGE: /v plate [newplate]");

                        return 1;

    }

    new Float:XX,Float:YY,Float:ZZ,Float:AA;

                    new Float:CarHP, Float:OldCarHP;

                    new panels,tires;

                GetVehicleHealth(vehid, CarHP);

                GetVehicleDamageStatus(vehid,panels,doors,lights,tires);

        OldCarHP = CarHP;

                format(CarInfo[vehid][cLicense], 32 ,"%s",cmdtext[idx]);

                    SetVehicleNumberPlate(vehid,CarInfo[vehid][cLicense]);

                GetVehiclePos(vehid,XX,YY,ZZ);

                GetVehicleZAngle(vehid, AA);

                SetVehicleToRespawn(vehid);

                SetVehiclePos(vehid,XX,YY,ZZ);

                SetVehicleZAngle(vehid, AA);

                PutPlayerInVehicle(playerid,vehid,0);

                SetVehicleHealth(vehid, OldCarHP);

                UpdateVehicleDamageStatus(vehid,panels,doors,lights,tires);

                format(string, sizeof(string), "{FFFF00}You have set your vehicle's plate to:{FFFFFF} %s", CarInfo[vehid][cLicense]);

                SendClientMessage(playerid, 0xFFFFFFFF, string);

                OnPropUpdate();

            }

            else

            {

                    SendClientMessage(playerid, 0xFFFFFFAA, "Nu esti in masina ta personala pentru a putea schimba NR de Inmatriculare.");

    return 1;

    }

        }[/pawn]

si nu stiu cum sa fac sa ramane numaru de inmatriculare dupa /v park , apoi cand dau RR la serv apare numarul dar doar prima litare din el.Ce pot face?

HostName: [RPG]*|| Ecila Royal Gaming ||*-WIPED

Address:  93.114.82.70:7777

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.