Hey.
Ich will so ein Fenster erstellen, in dem Fenster soll untereinander stehen:
Deathmatch
Deathmatch2
Deathmatch3
Deathmatch4
Deathmatch5
Battleground
Race
Derby
Hay
Und wenn man eins davon anklickt, soll man teleportiert werden, also es soll im Chat geschrieben werden:
Bei Deathmatch = /dm
bei battleground = bg
usw.
Was muss ich hier noch ändern?
#define MINIGAMES 1
public OnPlayerCommandText
if(strcmp(cmd,"/minigames",cmdtext,true,10) == 0)
{
}
ShowPlayerDialog(playerid, MINIGAMES, DIALOGID,DIALOG_STYLE_LIST,"Minigames","Deathmach\n Deathmatch2\n Deathmatch3\n Deathmatch4\n Deathmatch5\n Battleground\n Race\n Derby\n Hay","Ok","Cancel");
return 1;
if(dialogid == DIALOGID){
case 0: OnPlayerCommandText(playerid,"/dm1");
case 1: OnPlayerCommandText(playerid,"/dm2");
case 2: OnPlayerCommandText(playerid,"/dm3");
case 3: OnPlayerCommandText(playerid,"/dm4");
case 4: OnPlayerCommandText(playerid,"/dm5");
case 5: OnPlayerCommandText(playerid,"/bg");
case 6: OnPlayerCommandText(playerid,"/race");
case 7: OnPlayerCommandText(playerid,"/derby");
case 8: OnPlayerCommandText(playerid,"/hay");
}
}
return 1;
}