Jump to content
  • 0

Promblema masini sloturi


marius11

Question

Problema intalnita (descriere):Am gm  Drawn si am intampinat o problema care nu stiu sa o rezolv , problema , la masini personale cand dai /cars apar 2 sloturi , cumperi 2 masini in sloturi si dupa dai sa mai cumperi un slot , el se cumpara dar la comanda /cars nu apare poti sa cumperi masina in slotul cumparat doar ca nu apare la cars , el apare doar daca cumperi cont premium 
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

switch(listitem)
            {
                case 0:
                {
                 if(PlayerData[playerid][vModel][1] == -1)
                  {
                  SendClientMessage(playerid, COLOR_GRAD1, "Nu ai vreo masina pe acest slot!");
                  ShowPersonalCars(playerid);
                  return 1;
                  }
                ShowCarMenu(playerid,1);                
                }
                case 1:
                {
                 if(PlayerData[playerid][vModel][2] == -1)
                  {
                  SendClientMessage(playerid, COLOR_GRAD1, "Nu ai vreo masina pe acest slot!");
                  ShowPersonalCars(playerid);
                  return 1;
                  }
                ShowCarMenu(playerid,2);                                
                }
                case 2:
                {
                 if(PlayerData[playerid][vModel][3] == -1)
                  {
                  SendClientMessage(playerid, COLOR_GRAD1, "Nu ai vreo masina pe acest slot!");
                  ShowPersonalCars(playerid);
                  return 1;
                  }
                ShowCarMenu(playerid,3);                            }
                case 3:
                {
                 if(PlayerData[playerid][vModel][4] == -1)
                  {
                  SendClientMessage(playerid, COLOR_GRAD1, "Nu ai vreo masina pe acest slot!");ShowPersonalCars(playerid);
                  return 1;
                  }
                    ShowCarMenu(playerid,4);                            }
                
                
                }
           
            }

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Acum 10 minute, Ksenon a spus:

Arata si ShowCarMenu si ShowPersonalCars

function ShowCarMenu(playerid,slot)
{                    
    switch(slot)
    {
        case 1:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 1",ArIsim[PlayerData[playerid][vModel][1]-400]);            
        ShowPlayerDialog(playerid,227,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 2:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 2",ArIsim[PlayerData[playerid][vModel][2]-400]);            
        ShowPlayerDialog(playerid,228,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }

 

 

 

 

function ShowPersonalCars(playerid)
{
        new strj1[3000];
        new dcar[258];
        new dcar2[258];
        new dcar3[257];
        new dcar4[258];
        new stext[4];
        new stext2[4];
        new stext3[4];
        new stext4[4];
        
        
        if(PlayerData[playerid][vLock][1] == 0) { stext = "Nu"; }
        else if(PlayerData[playerid][vLock][1] == 1) { stext = "Da"; }
        
        if(PlayerData[playerid][vLock][2] == 0) { stext2 = "Nu"; }
        else if(PlayerData[playerid][vLock][2] == 1) { stext2 = "Da"; }
        
            if(PlayerData[playerid][vLock][3] == 0) { stext3 = "Nu"; }
        else if(PlayerData[playerid][vLock][3] == 1) { stext3 = "Da"; }
        
            if(PlayerData[playerid][vLock][4] == 0) { stext4 = "Nu"; }
        else if(PlayerData[playerid][vLock][4] == 1) { stext4 = "Da"; }
        
         if(PlayerData[playerid][vModel][1] > 1)
        {
    format(dcar, sizeof(dcar), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][1]-400], PlayerData[playerid][vKM][1], stext,FormatNumber(GetAsigurare(playerid,1), 0, '.'),PlayerData[playerid][vPlate]);
    }else { format(dcar, sizeof(dcar), ""V2"<slot liber>"ALB"\n"); }
     if(PlayerData[playerid][vModel][2] > 1)
        {
    format(dcar2, sizeof(dcar2), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][2]-400], PlayerData[playerid][vKM][2], stext2,FormatNumber(GetAsigurare(playerid,2), 0, '.'),PlayerData[playerid][vPlate2]);
    }else { format(dcar2, sizeof(dcar2), ""V2"<slot liber>"ALB"\n"); }
    if(PlayerData[playerid][pDonateRank] >= 1)
    {
     if(PlayerData[playerid][vModel][3] > 1)
        {
      format(dcar3, sizeof(dcar3), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][3]-400], PlayerData[playerid][vKM][3], stext3,FormatNumber(GetAsigurare(playerid,3), 0, '.'),PlayerData[playerid][vPlate3]);
    }else { format(dcar3, sizeof(dcar3), ""V2"<slot liber>"ALB"\n"); }
    }
    if(PlayerData[playerid][pDonateRank] >= 1)
    {
    if(PlayerData[playerid][vModel][4] > 1)
        {
    format(dcar4, sizeof(dcar4), ""VD">"ALB" %s\t| KM %.1f| Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][4]-400], PlayerData[playerid][vKM][4], stext4,FormatNumber(GetAsigurare(playerid,4), 0, '.'),PlayerData[playerid][vPlate4]);
    }else { format(dcar4, sizeof(dcar4), ""V2"<slot liber>"ALB"\n"); }
    }
   
    format(strj1, sizeof(strj1), "%s%s%s%s",dcar, dcar2, dcar3, dcar4);
    ShowPlayerDialog(playerid, 226, DIALOG_STYLE_LIST, "MASINI PERSONALE", strj1, "Select","Close"); 
}
        case 3:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 3",ArIsim[PlayerData[playerid][vModel][3]-400]);            
        ShowPlayerDialog(playerid,229,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 4:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 4",ArIsim[PlayerData[playerid][vModel][4]-400]);            
        ShowPlayerDialog(playerid,230,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
    }
    return 1;
}

Link to comment
Share on other sites

  • 0

Mie imi merge perfect tot nu stiu cum tie nu-ti merge :)), eu deja m-am folosit de ds mult si am facut ceva mai frumos am trecut toate comenzile pe zcmd (Nu-ti deschide serverul daca nu ai trecute comenzile pe zcmd pentru ca o sa-ti merga serveru ca ....)

Cand l-a pus robi a mai sters cate ceva , pune si tu pPremiumAcc acolo si mai adauga niste if-uri gandeste-te logic .

14 hours ago, marius11 said:

function ShowCarMenu(playerid,slot)
{                    
    switch(slot)
    {
        case 1:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 1",ArIsim[PlayerData[playerid][vModel][1]-400]);            
        ShowPlayerDialog(playerid,227,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 2:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 2",ArIsim[PlayerData[playerid][vModel][2]-400]);            
        ShowPlayerDialog(playerid,228,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }

 

 

 

 

function ShowPersonalCars(playerid)
{
        new strj1[3000];
        new dcar[258];
        new dcar2[258];
        new dcar3[257];
        new dcar4[258];
        new stext[4];
        new stext2[4];
        new stext3[4];
        new stext4[4];
        
        
        if(PlayerData[playerid][vLock][1] == 0) { stext = "Nu"; }
        else if(PlayerData[playerid][vLock][1] == 1) { stext = "Da"; }
        
        if(PlayerData[playerid][vLock][2] == 0) { stext2 = "Nu"; }
        else if(PlayerData[playerid][vLock][2] == 1) { stext2 = "Da"; }
        
            if(PlayerData[playerid][vLock][3] == 0) { stext3 = "Nu"; }
        else if(PlayerData[playerid][vLock][3] == 1) { stext3 = "Da"; }
        
            if(PlayerData[playerid][vLock][4] == 0) { stext4 = "Nu"; }
        else if(PlayerData[playerid][vLock][4] == 1) { stext4 = "Da"; }
        
         if(PlayerData[playerid][vModel][1] > 1)
        {
    format(dcar, sizeof(dcar), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][1]-400], PlayerData[playerid][vKM][1], stext,FormatNumber(GetAsigurare(playerid,1), 0, '.'),PlayerData[playerid][vPlate]);
    }else { format(dcar, sizeof(dcar), ""V2"<slot liber>"ALB"\n"); }
     if(PlayerData[playerid][vModel][2] > 1)
        {
    format(dcar2, sizeof(dcar2), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][2]-400], PlayerData[playerid][vKM][2], stext2,FormatNumber(GetAsigurare(playerid,2), 0, '.'),PlayerData[playerid][vPlate2]);
    }else { format(dcar2, sizeof(dcar2), ""V2"<slot liber>"ALB"\n"); }
    if(PlayerData[playerid][pDonateRank] >= 1)
    {
     if(PlayerData[playerid][vModel][3] > 1)
        {
      format(dcar3, sizeof(dcar3), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][3]-400], PlayerData[playerid][vKM][3], stext3,FormatNumber(GetAsigurare(playerid,3), 0, '.'),PlayerData[playerid][vPlate3]);
    }else { format(dcar3, sizeof(dcar3), ""V2"<slot liber>"ALB"\n"); }
    }
    if(PlayerData[playerid][pDonateRank] >= 0)
    {
    if(PlayerData[playerid][vModel][4] > 1)
        {
    format(dcar4, sizeof(dcar4), ""VD">"ALB" %s\t| KM %.1f| Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][4]-400], PlayerData[playerid][vKM][4], stext4,FormatNumber(GetAsigurare(playerid,4), 0, '.'),PlayerData[playerid][vPlate4]);
    }else { format(dcar4, sizeof(dcar4), ""V2"<slot liber>"ALB"\n"); }
    }
   
    format(strj1, sizeof(strj1), "%s%s%s%s",dcar, dcar2, dcar3, dcar4);
    ShowPlayerDialog(playerid, 226, DIALOG_STYLE_LIST, "MASINI PERSONALE", strj1, "Select","Close"); 
}
        case 3:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 3",ArIsim[PlayerData[playerid][vModel][3]-400]);            
        ShowPlayerDialog(playerid,229,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 4:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 4",ArIsim[PlayerData[playerid][vModel][4]-400]);            
        ShowPlayerDialog(playerid,230,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
    }
    return 1;
}

Incearca asa :

function ShowCarMenu(playerid,slot)
{                    
    switch(slot)
    {
        case 1:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 1",ArIsim[PlayerInfo[playerid][vModel][1]-400]);
        ShowPlayerDialog(playerid,227,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 2:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 2",ArIsim[PlayerInfo[playerid][vModel][2]-400]);
        ShowPlayerDialog(playerid,228,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 3:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 3",ArIsim[PlayerInfo[playerid][vModel][3]-400]);
        ShowPlayerDialog(playerid,229,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 4:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 4",ArIsim[PlayerInfo[playerid][vModel][4]-400]);
        ShowPlayerDialog(playerid,230,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
    }
    return 1;
}

 

 

 

function ShowPersonalCars(playerid)
{
        new strj1[3000];
        new dcar[258];
        new dcar2[258];
        new dcar3[257];
        new dcar4[258];
        new stext[4];
        new stext2[4];
        new stext3[4];
        new stext4[4];
        
        
        if(PlayerData[playerid][vLock][1] == 0) { stext = "Nu"; }
        else if(PlayerData[playerid][vLock][1] == 1) { stext = "Da"; }
        
        if(PlayerData[playerid][vLock][2] == 0) { stext2 = "Nu"; }
        else if(PlayerData[playerid][vLock][2] == 1) { stext2 = "Da"; }
        
        if(PlayerData[playerid][vLock][3] == 0) { stext3 = "Nu"; }
        else if(PlayerData[playerid][vLock][3] == 1) { stext3 = "Da"; }
        
         if(PlayerData[playerid][vLock][4] == 0) { stext4 = "Nu"; }
        else if(PlayerData[playerid][vLock][4] == 1) { stext4 = "Da"; }
        
         if(PlayerData[playerid][vModel][1] > 1)
        {
    format(dcar, sizeof(dcar), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][1]-400], PlayerData[playerid][vKM][1], stext,FormatNumber(GetAsigurare(playerid,1), 0, '.'),PlayerData[playerid][vPlate]);
    }else { format(dcar, sizeof(dcar), ""V2"<slot liber>"ALB"\n"); }
     if(PlayerData[playerid][vModel][2] > 1)
        {
    format(dcar2, sizeof(dcar2), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][2]-400], PlayerData[playerid][vKM][2], stext2,FormatNumber(GetAsigurare(playerid,2), 0, '.'),PlayerData[playerid][vPlate2]);
    }else { format(dcar2, sizeof(dcar2), ""V2"<slot liber>"ALB"\n"); }
    if(PlayerData[playerid][pDonateRank] >= 0)
    {
     if(PlayerData[playerid][vModel][3] > 1)
        {
      format(dcar3, sizeof(dcar3), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][3]-400], PlayerData[playerid][vKM][3], stext3,FormatNumber(GetAsigurare(playerid,3), 0, '.'),PlayerData[playerid][vPlate3]);
    }else { format(dcar3, sizeof(dcar3), ""V2"<slot liber>"ALB"\n"); }
    }
    if(PlayerData[playerid][pDonateRank] >= 0)
    {
    if(PlayerData[playerid][vModel][4] > 1)
        {
    format(dcar4, sizeof(dcar4), ""VD">"ALB" %s\t| KM %.1f| Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][4]-400], PlayerData[playerid][vKM][4], stext4,FormatNumber(GetAsigurare(playerid,4), 0, '.'),PlayerData[playerid][vPlate4]);
    }else { format(dcar4, sizeof(dcar4), ""V2"<slot liber>"ALB"\n"); }
    }
   
    format(strj1, sizeof(strj1), "%s%s%s%s",dcar, dcar2, dcar3, dcar4);
    ShowPlayerDialog(playerid, 226, DIALOG_STYLE_LIST, "MASINI PERSONALE", strj1, "Select","Close"); 
    }
    return 1;
}

 

Vezi ca eu am modificat PlayerData cu PlayerInfo pentru ca eu cu asta lucrez , stii si tu sa schimbi .

Daca te-am ajutat +1 :*

Sa scrii t/c daca ai rezolvat !

Edited by CheaTer
  • Upvote 1
Link to comment
Share on other sites

  • 0
Acum 4 ore, CheaTer a spus:

e Mie imi merge perfect tot nu stiu cum tie nu-ti merge :)), eu deja m-am folosit de ds mult si am facut ceva mai frumos am trecut toate comenzile pe zcmd (Nu-ti deschide serverul daca nu ai trecute comenzile pe zcmd pentru ca o sa-ti merga serveru ca ....)

Cand l-a pus robi a mai sters cate ceva , pune si tu pPremiumAcc acolo si mai adauga niste if-uri gandeste-te logic .

Incearca asa :

function ShowCarMenu(playerid,slot)
{                    
    switch(slot)
    {
        case 1:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 1",ArIsim[PlayerInfo[playerid][vModel][1]-400]);
        ShowPlayerDialog(playerid,227,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 2:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 2",ArIsim[PlayerInfo[playerid][vModel][2]-400]);
        ShowPlayerDialog(playerid,228,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 3:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 3",ArIsim[PlayerInfo[playerid][vModel][3]-400]);
        ShowPlayerDialog(playerid,229,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
        case 4:
        {                    
        new string[64];
        format(string,sizeof(string),"%s options | Slot 4",ArIsim[PlayerInfo[playerid][vModel][4]-400]);
        ShowPlayerDialog(playerid,230,DIALOG_STYLE_LIST,string,""VD">"ALB" Respawneaza\n"VD">"ALB" Vehicle info\n"VD">"ALB" Localizeaza\n"VD">"ALB" Schimba numar\n"VD">"ALB" Reseteaza spawn\n"VD">"ALB" Remove mods","Select", "Cancel");
        }
    }
    return 1;
}

 

 

 

function ShowPersonalCars(playerid)
{
        new strj1[3000];
        new dcar[258];
        new dcar2[258];
        new dcar3[257];
        new dcar4[258];
        new stext[4];
        new stext2[4];
        new stext3[4];
        new stext4[4];
        
        
        if(PlayerData[playerid][vLock][1] == 0) { stext = "Nu"; }
        else if(PlayerData[playerid][vLock][1] == 1) { stext = "Da"; }
        
        if(PlayerData[playerid][vLock][2] == 0) { stext2 = "Nu"; }
        else if(PlayerData[playerid][vLock][2] == 1) { stext2 = "Da"; }
        
        if(PlayerData[playerid][vLock][3] == 0) { stext3 = "Nu"; }
        else if(PlayerData[playerid][vLock][3] == 1) { stext3 = "Da"; }
        
         if(PlayerData[playerid][vLock][4] == 0) { stext4 = "Nu"; }
        else if(PlayerData[playerid][vLock][4] == 1) { stext4 = "Da"; }
        
         if(PlayerData[playerid][vModel][1] > 1)
        {
    format(dcar, sizeof(dcar), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][1]-400], PlayerData[playerid][vKM][1], stext,FormatNumber(GetAsigurare(playerid,1), 0, '.'),PlayerData[playerid][vPlate]);
    }else { format(dcar, sizeof(dcar), ""V2"<slot liber>"ALB"\n"); }
     if(PlayerData[playerid][vModel][2] > 1)
        {
    format(dcar2, sizeof(dcar2), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][2]-400], PlayerData[playerid][vKM][2], stext2,FormatNumber(GetAsigurare(playerid,2), 0, '.'),PlayerData[playerid][vPlate2]);
    }else { format(dcar2, sizeof(dcar2), ""V2"<slot liber>"ALB"\n"); }
    if(PlayerData[playerid][pDonateRank] >= 0)
    {
     if(PlayerData[playerid][vModel][3] > 1)
        {
      format(dcar3, sizeof(dcar3), ""VD">"ALB" %s\t| KM %.1f | Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][3]-400], PlayerData[playerid][vKM][3], stext3,FormatNumber(GetAsigurare(playerid,3), 0, '.'),PlayerData[playerid][vPlate3]);
    }else { format(dcar3, sizeof(dcar3), ""V2"<slot liber>"ALB"\n"); }
    }
    if(PlayerData[playerid][pDonateRank] >= 0)
    {
    if(PlayerData[playerid][vModel][4] > 1)
        {
    format(dcar4, sizeof(dcar4), ""VD">"ALB" %s\t| KM %.1f| Inchis:%s | Asigurare: $%s | Num: %s\n", ArIsim[PlayerData[playerid][vModel][4]-400], PlayerData[playerid][vKM][4], stext4,FormatNumber(GetAsigurare(playerid,4), 0, '.'),PlayerData[playerid][vPlate4]);
    }else { format(dcar4, sizeof(dcar4), ""V2"<slot liber>"ALB"\n"); }
    }
   
    format(strj1, sizeof(strj1), "%s%s%s%s",dcar, dcar2, dcar3, dcar4);
    ShowPlayerDialog(playerid, 226, DIALOG_STYLE_LIST, "MASINI PERSONALE", strj1, "Select","Close"); 
    }
    return 1;
}

 

Vezi ca eu am modificat PlayerData cu PlayerInfo pentru ca eu cu asta lucrez , stii si tu sa schimbi .

Daca te-am ajutat +1 :*

Sa scrii t/c daca ai rezolvat !

Nu imi deschid server inca nu sunt pregatit , momentan invat poate la anu daca o sa invat tot ce trebuie , acum am mai multe gm si fac din fiecare cate ceva, pentru ca vreau sa invat pe mai multe gm-uri si ms +1

Edited by marius11
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.