Salut !
Comanda mea este urmatoarea:
CMD:mycars(playerid, params[])
{
new bool:found = false;
new szDialog[2000] = "ID\tVehicle\tPremium\n";
//----------------------------------------------------------------------
for(new i = 0; i < MAX_VEH; i++)
{
if(!Vehicles[i][vehStatus]) continue;
//--------------------------------------------------------------
if(!strcmp(Vehicles[i][vehOwner], PlayerName(playerid)))
{
found = true;
format(szDialog, sizeof(szDialog), "%s{FFFFFF}#%d\t{FFE600}%s\t{00FF04}Yes\n", szDialog, Vehicles[i][vehID], vNames[Vehicles[i][vehModel] - 400]);
}
//--------------------------------------------------------------
}
//----------------------------------------------------------------------
if(found)
{
ShowPlayerDialog(playerid, PCar_D+3, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Select a vehicle to manage", szDialog, "Select", "Cancel");
}
//----------------------------------------------------------------------
else
{
SendError2(playerid, "You don't own any personal vehicles!", "Nu detii niciun vehicul personal!");
}
//----------------------------------------------------------------------
return 1;
}