Nein ich habe es anders gemacht :
EDIT: error Codes stehen oben.
stock ShowDialog(playerid, dialog)
{
new dstring[123];
switch(dialog)
{
case WEAPON_DIALOG: {
format(dstring, sizeof(dstring),"{6600CC}|<-------Waffen------>|\
\nSniper Rifle [Preis: 10000€] [Munitions Preis: %d$]\
\nAk47 [Preis: 6150€] [Munitions Preis: %d$ ]\
\nM4 [Preis: 7200€] [Munitions Preis: %d$ ]\
\nCombat Shotgun [Preis: 9800€] [Munitions Preis: %d$ ]\
\nShotgun [Preis: 2500€] [Munitions Preis: %d$ ]\
\nDesert Eagle [Preis: 1500€] [Munitions Preis: %d$ ]\
\nMicro SMG [Preis: 4250€] [Munitions Preis: %d$ ]\
\nMP5 [Preis: 5250€] [Munitions Preis: %d$]\
\nSD-Pistole [Preis: 3000€] [Munitions Preis: %d$]",
SNIPER_PRICE,
ROCKET_PRICE,
MOLOTIV_PRICE,
C_SHOTGUN_PRICE,
S_SHOTGUN_PRICE,
DESERT_PRICE,
GRANADE_PRICE,
MP5_PRICE,
SD_PRICE);
/*new test[1023];
strcat(test,"{6600CC}|<-------Waffen------>| \n");
strcat(test,"Sniper Rifle [Preis: 10000€] [Munitions Preis: %d$] \n",SNIPER_PRICE);
strcat(test,"Ak47 [Preis: 6150€] [Munitions Preis: %d$ ] \n",ROCKET_PRICE);
strcat(test,"M4 [Preis: 7200€] [Munitions Preis: %d$ ] \n",MOLOTIV_PRICE);
strcat(test,"Combat Shotgun [Preis: 9800€] [Munitions Preis: %d$ ] \n",C_SHOTGUN_PRICE);
strcat(test,"Shotgun [Preis: 2500€] [Munitions Preis: %d$ ] \n",S_SHOTGUN_PRICE);
strcat(test,"Desert Eagle [Preis: 1500€] [Munitions Preis: %d$ ] \n",DESERT_PRICE);
strcat(test,"Micro SMG [Preis: 4250€] [Munitions Preis: %d$ ] \n",GRANADE_PRICE);
strcat(test,"MP5 [Preis: 5250€] [Munitions Preis: %d$ \n",MP5_PRICE);
strcat(test,"SD-Pistole [Preis: 5250€] [Munitions Preis: %d$ \n",SD_PRICE); */
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_LIST,"{003399}W{00FF66}affenladen",dstring,"Weiter","Abbrechen");
}
case WEAPON_DIALOG1: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Sniper brauchst .\n Munition Preis pro Stück: %d$",SNIPER_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Sniper Rifle",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG2: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Ak47 brauchst .\n Munition Preis pro Stück: %d$",ROCKET_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Ak47",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG3: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die M4 brauchst .\n Munition Preis pro Stück: %d$",MOLOTIV_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}M4",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG4: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Combat Shotgun brauchst .\n Munition Preis pro Stück: %d$",C_SHOTGUN_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Combat ShotGun",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG5: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Shotgun brauchst .\n Munition Preis pro Stück: %d$",S_SHOTGUN_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}ShotGun",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG6: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Desert Eagle brauchst .\n Munition Preis pro Stück: %d$",DESERT_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Desert Eagle",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG7: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die Micro SMG brauchst .\n Munition Preis pro Stück: %d$",GRANADE_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}Micro SMG",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG8: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die MP5 brauchst .\n Munition Preis pro Stück: %d$",MP5_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}MP5",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG10: {
format(dstring, sizeof(dstring),"{00FF66}Tippe ein, wieviel Muntion du für die SD-Pistole brauchst .\n Munition Preis pro Stück: %d$",SD_PRICE);
ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"{003399}SD-Pistole",dstring,"Kaufen","Abbrechen");
}
case WEAPON_DIALOG9: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_MSGBOX, "{FF0000}Waffenladen","{FF6600}Willst du den Shop {6600CC}öffnen{33CC00}oder{00FFFF}schließen{FF6600}?","Öffnen","Schließen");
}
return 0;
}