Jump to content
  • 0

Problema /v


Master18

Question

Problema intalnita (descriere):am facut comanda /v si cand o  folosesc pe svr da server unknow commad.
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:v(playerid, params[])
{
    new vstring[254], vlock[30], cw = PlayerInfo[playerid][pCarKey], cw1 = PlayerInfo[playerid][pCarKey1], cw2 = PlayerInfo[playerid][pCarKey2], cw3 = PlayerInfo[playerid][pCarKey3];

    if(VehiclesInfo[cw][vLock] == 0 && VehiclesInfo[cw1][vLock] == 0)
    {
        vlock = "{2ED131}Unlocked";
    }
    if(VehiclesInfo[cw][vLock] == 1 && VehiclesInfo[cw1][vLock] == 1)
    {
        vlock = "{D41320}Locked";
    }
    if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1)
    {
        VControl[playerid] = 1;
        format(vstring, sizeof(vstring), "%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vModel])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
        ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
    }
    if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] == 0)
    {
        VControl[playerid] = 2;
        format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock);
        ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
    }
    if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey1] >= 1)
    {
        VControl[playerid] = 3;
        format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
        ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
    }
    if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pCarKey2] >= 1 && PlayerInfo[playerid][pCarKey3] >= 1)
    {
        VControl[playerid] = 4;
        format(vstring, sizeof(vstring), "%s - %s\n%s - %s\n%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw2][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw3][vServerID])-400], vlock);
        ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
    }
    return 1;
}

 


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: da, de cateva ori.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
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.