Hi, ich bin gerade dabei mein Gangautohaussystem zu verbessern aber ich komme hier nicht weiter:
Ich möchte dass ein Dialog kommt wo alle Fahrzeuge aufgelistet sind und wenn man die anklickt soll man es kaufen also DIALOG_STYLE_LIST, aber bei mir wird immer nur 1 angezeigt.. Code:
enum GAModell{ GAName[128], GAModelid, GACarid, GAPreis, GAReparatur, Float:GApos_x, Float:GApos_y, Float:GApos_z, Float:GAz_angle,};new GangAutoKaufliste[30][GAModell] ={ {"Sanchez",468,-1,500000,12500,1417.401000,-2.177179,1000.594848,63.430023},{"FCR-900",521,-1,1500000,37500,1417.256835,-4.079144,1000.499694,68.147079},{"PCJ-600",461,-1,1000000,37500,1416.988037,-5.702672,1000.513854,68.891159}, {"Quad",471,-1,1000000,25000,1417.291870,-7.717350,1000.408203,68.001533}, {"Admiral",445,-1,1500000,90000,1418.101806,-45.562347,1000.802734,0.564044}, {"Tahoma",566,-1,1500000,50000,1414.580810,-45.918140,1000.704467,0.661794}, {"Picador",600,-1,1500000,55000,1410.916015,-46.097084,1000.636657,0.553053}, {"Broadway",575,-1,1500000,60000,1406.627441,-45.986267,1000.518310,0.195263}, {"Majestic",517,-1,1500000,50000,1402.471557,-45.967777,1000.764587,0.887799}, {"Sabre",475,-1,1500000,40000,1398.177490,-46.124469,1000.721435,2.555773}, {"Greenwood",492,-1,1500000,50000,1394.438598,-46.122188,1000.704772,2.419861}, {"Savanna",567,-1,1500000,60000,1390.207031,-45.639965,1000.788818,2.024821}, {"Burrito",482,-1,250000,75000,1386.154052,-45.345012,1001.042114,1.091903}, {"Slamvan",535,-1,3000000,70000,1377.245117,-45.903491,1000.684509,0.068473}, {"Blade",536,-1,2500000,50000,1372.690551,-45.979270,1000.655090,1.203822}, {"Remington",534,-1,1500000,50000,1368.127807,-46.046123,1000.643188,2.405164}, {"Stafford",580,-1,1500000,100000,1376.804565,-32.645450,1000.722595,0.284618}, {"Sentinel",405,-1,1500000,95000,1382.428588,-32.626815,1000.798339,0.557604}, {"Huntley",579,-1,4500000,70000,1396.789794,-32.650699,1000.841247,2.857287}, {"Stretch",409,-1,150000000,1500000,1363.793579,2.268888,1000.740966,221.919738}, {"Cheetah",415,-1,24500000,62500,1361.828857,-3.765029,1000.693969,291.401397}, {"Banshee",429,-1,4000000,140000,1368.058471,-6.246426,1000.601562,297.863189}, {"Jester",559,-1,1500000,250000,1373.382934,-7.299688,1000.577941,310.468322}, {"Comet",480,-1,19500000,85750,1379.335449,-7.179065,1000.698852,312.082397}, {"Willard",529,-1,2000000,50000,1394.154785,-20.705831,1000.546997,3.247770}, {"Sultan",560,-1,45000000,65000,1368.082519,4.160577,1000.627075,219.905090}, {"Turismo",451,-1,27500000,25000,1373.780761,4.467061,1000.622436,217.440185}, {"Patriot",470,-1,16500000,30000,1380.595825,4.292822,1000.914855,210.042800}, {"Infernus",411,-1,95000000,360000,1385.5891,-7.2614,1000.6476,312.6861}, {"Bullet",541,-1,35000000,35000,1391.9673,-7.0474,1000.5363,313.2698}};
if(strcmp("/buygangcar", cmd, true) == 0){ if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLeader] != -1) { for(new i = 0; i < sizeof(GangAutoKaufliste); i++) { format(string,sizeof(string),"Marke: %s; Preis: $%s",GangAutoKaufliste[i][GAName],GetPoint(GangAutoKaufliste[i][GAPreis])); ShowPlayerDialog(playerid,DIALOG_GANGAUTOHAUS,DIALOG_STYLE_LIST,"Gangautohaus",string,"Auswählen","Abbrechen"); } } else { SendClientMessage(playerid,COLOR_ERRORTEXT,"Du bist kein Leader einer Gang/Mafia!"); return 1; } } return 1;}
Das mit dem anklicken und kaufen kann ich selber ich möchte nur wissen wie alle angezeigt werden die ich bei GangAutoKaufliste drinnen stehen. Danke im vorraus!
MfG,
SW33T