Code
if(response)
{
switch(listitem)
{
case 0: //Eigene Fahrzeugschlüssel
{
new string[300], name;
format(string,sizeof(string),"%s{FFFFFF}Fahrzeug\t{FFFFFF}kenn\t{FFFFFF}current \n\
", string);
for(new i = 0; i < sizeof(PCar[]); i++)
{
name = PCar[playerid][i][P_MID] - 400;
if(name < 0 || name >= sizeof(carNames)) format(string,sizeof(string),"%sLeer\t/\n", string);
else if(pInfo[playerid][P_Current] > 0)
{
format(string,sizeof(string),"%s{FFFFFF}%s\tSF-1337\tX\n", string, carNames[name]);
}
else
{
format(string,sizeof(string),"%s{FFFFFF}%s\tSF-1337\n", string, carNames[name]);
}
}
ShowPlayerDialog(playerid, DIALOG_FAHRZEUG3, DIALOG_STYLE_TABLIST_HEADERS, "Fahrzeugschlüssel - Auswählen", string, "Auswählen","Zurück");
}
case 1: //Andere Fahrzeugschlüssel
{
}
}
}
else
{
//Wenn er wieder zurück ins Hautpmenü will
}
return 1;
}
Alles anzeigen