Jump to content
  • 0

Help comanda.


zNx.

Question

Problema intalnita (descriere):Deci comanda exista,dar serverul imi spune ca Unknow Command,si nu stiu de ce,comanda nu este scrisa la public OnPlayerCommandPerformed(playerid, cmdtext[], success).
Ero(area / rile) / warning-(ul / urile):

Quote

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;
}


Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da,inainte era return 0; si tot nu mergea,am pus 1 si la fel.

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
  • 0
1 minute ago, WiDuAlK said:

Din cate am vazut de-alungul vremii, multi au patit asa ceva utilizand ZCMD, personal nu m-a prea intereseat aceasta problema asa ca nu m-am documentat dar, eu nu am avut aceasta problema pentru ca nu folosesc  ZCMD. Iti sugerez sa schimbi procesorul de comenzi si problema se rezolva de la sine.

Imi recomanzi un procesor,care sa mearga si sa nu mai am probleme de genul acesta ?

Link to comment
Share on other sites

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