Jump to content
  • 0

Problema /cars


marius11

Question

Problema intalnita (descriere):Am si eu o problema la comanda cars, primele 2 sloturi sunt gratis iar cele 2 trebuie sa ai cont premium cum fac ca sloturile sa apara doar dupa ce cumpara cineva cont premium, in prezent apar toate
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:cars(playerid, params[])
{
    new param4[32],param69[32],param59[32],param70[32];
    if(playerVariables[playerid][pCarModel1] >= 400)
    {
        format(param4, sizeof(param4), "%s [ID:%d]", VehicleNames[playerVariables[playerid][pCarModel1] - 400], playerVariables[playerid][pCarID1]);
    }
    else
    {
        param4 = "[Disponibil]";
    }
    if(playerVariables[playerid][pCarModel2] >= 400)
    {
        format(param69, sizeof(param4), "%s [ID:%d]", VehicleNames[playerVariables[playerid][pCarModel2] - 400], playerVariables[playerid][pCarID2]);
    }
    else
    {
        param69 = "[Disponibil]";
    }
    if(playerVariables[playerid][pCarModel3] >= 400)
    {
        format(param59, sizeof(param59), "%s [ID:%d]", VehicleNames[playerVariables[playerid][pCarModel3] - 400], playerVariables[playerid][pCarID3]);
    }
    else
    {
        param59 = "[Disponibil]";
    }
    if(playerVariables[playerid][pCarModel4] >= 400)
    {
        format(param70, sizeof(param70), "%s [ID:%d]", VehicleNames[playerVariables[playerid][pCarModel4] - 400], playerVariables[playerid][pCarID4]);
    }
    else
    {
        param70 = "[Disponibil]";
    }
    format(szMessage, sizeof(szMessage), "%s\n%s\n%s\n%s",param4,param69,param59,param70);
    ShowPlayerDialog(playerid, 15524, DIALOG_STYLE_LIST, "Masinile Personale", szMessage, "Select", "Cancel");
    return 1;
}


Imagini / Video (optional):
Ati incercat sa rezolvati singur?:

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Inlocui asa

if(playerVariables[playerid][pCarModel4] >= 400)
    {
        format(param70, sizeof(param70), "%s [ID:%d]", VehicleNames[playerVariables[playerid][pCarModel4] - 400], playerVariables[playerid][pCarID4]);
    }
    else
    {
        param70 = "[Disponibil]";
    }

Si faci o resctrictie,

If(playrvral[plyei][pvip]>0)

{

if(playerVariables[playerid][pCarModel4] >= 400)
    {
        format(param70, sizeof(param70), "%s [ID:%d]", VehicleNames[playerVariables[playerid][pCarModel4] - 400], playerVariables[playerid][pCarID4]);
    }
    else
    {
        param70 = "[Disponibil]";
    }

}

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

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.