Dialog -.-

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Halo leute ;)


    ich hab keine fehler oder sowas es funtioniert nur nicht so wie es sein soll


    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,%d,"OK","");


    der string würd hat nicht angezeigt


    wenn ich das mit


    SendCientMessage(playerid,ORA,string);
    mache klapt das aber ich möchte das es im dialog steht


    ocmd:durchsuchen(playerid,params[])
    {
    if(!isPlayerBehoerde(playerid))return SendClientMessage(playerid,ROT,"Du bist in Keiner Behörde!");
    new pID,string[128];
    new Waffe1,Waffe2,Waffe3,Waffe4,Waffe5,Waffe6,Waffe7,Waffe8,Waffe9,Waffe10,Waffe11,Waffe12,Waffe13;
    new Ammo1,Ammo2,Ammo3,Ammo4,Ammo5,Ammo6,Ammo7,Ammo8,Ammo9,Ammo10,Ammo11,Ammo12,Ammo13;
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,HBLAU,"/durchsuchen [id]");
    GetPlayerWeaponData(pID,1,Waffe1,Ammo1);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,%d,"OK","");
    format(string,sizeof string,"%d",Waffe1);
    GetPlayerWeaponData(pID,2,Waffe2,Ammo2);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,%d,"OK","");
    format(string,sizeof string,"%d",Waffe1);
    GetPlayerWeaponData(pID,3,Waffe3,Ammo3);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,%d,"OK","");
    format(string,sizeof string,"%d",Waffe3);
    GetPlayerWeaponData(pID,4,Waffe4,Ammo4);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,%d,"OK","");
    format(string,sizeof string,"%d",Waffe4);
    GetPlayerWeaponData(pID,5,Waffe5,Ammo5);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,%d,"OK","");
    format(string,sizeof string,"%d",Waffe5);
    GetPlayerWeaponData(pID,6,Waffe6,Ammo6);
    format(string,sizeof string,"%d",Waffe6);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,7,Waffe7,Ammo7);
    format(string,sizeof string,"%d",Waffe7);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,8,Waffe8,Ammo8);
    format(string,sizeof string,"%d",Waffe8);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,9,Waffe9,Ammo9);
    format(string,sizeof string,"%d",Waffe9);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,10,Waffe10,Ammo10);
    format(string,sizeof string,"%d",Waffe10);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,11,Waffe11,Ammo11);
    format(string,sizeof string,"%d",Waffe11);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,12,Waffe12,Ammo12);
    format(string,sizeof string,"%d",Waffe12);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,13,Waffe13,Ammo13);
    format(string,sizeof string,"%d",Waffe13);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    return 1;
    }

  • ocmd:durchsuchen(playerid,params[])
    {
    if(!isPlayerBehoerde(playerid))return SendClientMessage(playerid,ROT,"Du bist in Keiner Behörde!");
    new pID,string[128];
    new Waffe1,Waffe2,Waffe3,Waffe4,Waffe5,Waffe6,Waffe7,Waffe8,Waffe9,Waffe10,Waffe11,Waffe12,Waffe13;
    new Ammo1,Ammo2,Ammo3,Ammo4,Ammo5,Ammo6,Ammo7,Ammo8,Ammo9,Ammo10,Ammo11,Ammo12,Ammo13;
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,HBLAU,"/durchsuchen [id]");
    GetPlayerWeaponData(pID,1,Waffe1,Ammo1);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    format(string,sizeof string,"%d",Waffe1);
    GetPlayerWeaponData(pID,2,Waffe2,Ammo2);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    format(string,sizeof string,"%d",Waffe1);
    GetPlayerWeaponData(pID,3,Waffe3,Ammo3);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    format(string,sizeof string,"%d",Waffe3);
    GetPlayerWeaponData(pID,4,Waffe4,Ammo4);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    format(string,sizeof string,"%d",Waffe4);
    GetPlayerWeaponData(pID,5,Waffe5,Ammo5);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    format(string,sizeof string,"%d",Waffe5);
    GetPlayerWeaponData(pID,6,Waffe6,Ammo6);
    format(string,sizeof string,"%d",Waffe6);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,7,Waffe7,Ammo7);
    format(string,sizeof string,"%d",Waffe7);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,8,Waffe8,Ammo8);
    format(string,sizeof string,"%d",Waffe8);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,9,Waffe9,Ammo9);
    format(string,sizeof string,"%d",Waffe9);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,10,Waffe10,Ammo10);
    format(string,sizeof string,"%d",Waffe10);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,11,Waffe11,Ammo11);
    format(string,sizeof string,"%d",Waffe11);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,12,Waffe12,Ammo12);
    format(string,sizeof string,"%d",Waffe12);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    GetPlayerWeaponData(pID,13,Waffe13,Ammo13);
    format(string,sizeof string,"%d",Waffe13);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    return 1;
    }
    jetzt ? :)

  • ocmd:durchsuchen(playerid,params[])
    {
    if(!isPlayerBehoerde(playerid))return SendClientMessage(playerid,ROT,"Du bist in Keiner Behörde!");
    new pID,string[256];
    new Waffe1,Waffe2,Waffe3,Waffe4,Waffe5,Waffe6,Waffe7,Waffe8,Waffe9,Waffe10,Waffe11,Waffe12,Waffe13;
    new Ammo1,Ammo2,Ammo3,Ammo4,Ammo5,Ammo6,Ammo7,Ammo8,Ammo9,Ammo10,Ammo11,Ammo12,Ammo13;
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,HBLAU,"/durchsuchen [id]");
    GetPlayerWeaponData(pID,0,Waffe1,Ammo1);
    format(string,sizeof string,"%d",Waffe1);
    GetPlayerWeaponData(pID,1,Waffe2,Ammo2);
    format(string,sizeof string,"%s\n%d",string,Waffe1);
    GetPlayerWeaponData(pID,2,Waffe3,Ammo3);
    format(string,sizeof string,"%s\n%d",string,Waffe3);
    GetPlayerWeaponData(pID,3,Waffe4,Ammo4);
    format(string,sizeof string,"%s\n%d",string,Waffe4);
    GetPlayerWeaponData(pID,4,Waffe5,Ammo5);
    format(string,sizeof string,"%s\n%d",string,Waffe5);
    GetPlayerWeaponData(pID,5,Waffe6,Ammo6);
    format(string,sizeof string,"%s\n%d",string,Waffe6);
    GetPlayerWeaponData(pID,6,Waffe7,Ammo7);
    format(string,sizeof string,"%s\n%d",string,Waffe7);
    GetPlayerWeaponData(pID,7,Waffe8,Ammo8);
    format(string,sizeof string,"%s\n%d",string,Waffe8);
    GetPlayerWeaponData(pID,8,Waffe9,Ammo9);
    format(string,sizeof string,"%s\n%d",string,Waffe9);
    GetPlayerWeaponData(pID,9,Waffe10,Ammo10);
    format(string,sizeof string,"%s\n%d",string,Waffe10);
    GetPlayerWeaponData(pID,10,Waffe11,Ammo11);
    format(string,sizeof string,"%s\n%d",string,Waffe11);
    GetPlayerWeaponData(pID,11,Waffe12,Ammo12);
    format(string,sizeof string,"%s\n%d",string,Waffe12);
    GetPlayerWeaponData(pID,12,Waffe13,Ammo13);
    format(string,sizeof string,"%s\n%d",string,Waffe13);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    return 1;
    }
    so dürfte das funktionieren, nur wird er dir warscheinlich im Dialog nur zahlen anzeigen

    "Bevor ich mir Informationen aus der "Bild" hole,
    werde ich anfangen, Wahlergebnisse danach vorauszusagen,
    neben welchen Busch unsere Katze gepinkelt hat."

    Margarete Stokowski

  • ocmd:durchsuchen(playerid,params[])
    {
    if(!isPlayerBehoerde(playerid))return SendClientMessage(playerid,ROT,"Du bist in Keiner Behörde!");
    new pID,string[256];
    new Waffe1,Waffe2,Waffe3,Waffe4,Waffe5,Waffe6,Waffe7,Waffe8,Waffe9,Waffe10,Waffe11,Waffe12,Waffe13;
    new Ammo1,Ammo2,Ammo3,Ammo4,Ammo5,Ammo6,Ammo7,Ammo8,Ammo9,Ammo10,Ammo11,Ammo12,Ammo13;
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,HBLAU,"/durchsuchen [id]");
    GetPlayerWeaponData(pID,0,Waffe1,Ammo1);
    format(string,sizeof string,"%d",Waffe1);
    GetPlayerWeaponData(pID,1,Waffe2,Ammo2);
    format(string,sizeof string,"%s\n%d",string,Waffe2);
    GetPlayerWeaponData(pID,2,Waffe3,Ammo3);
    format(string,sizeof string,"%s\n%d",string,Waffe3);
    GetPlayerWeaponData(pID,3,Waffe4,Ammo4);
    format(string,sizeof string,"%s\n%d",string,Waffe4);
    GetPlayerWeaponData(pID,4,Waffe5,Ammo5);
    format(string,sizeof string,"%s\n%d",string,Waffe5);
    GetPlayerWeaponData(pID,5,Waffe6,Ammo6);
    format(string,sizeof string,"%s\n%d",string,Waffe6);
    GetPlayerWeaponData(pID,6,Waffe7,Ammo7);
    format(string,sizeof string,"%s\n%d",string,Waffe7);
    GetPlayerWeaponData(pID,7,Waffe8,Ammo8);
    format(string,sizeof string,"%s\n%d",string,Waffe8);
    GetPlayerWeaponData(pID,8,Waffe9,Ammo9);
    format(string,sizeof string,"%s\n%d",string,Waffe9);
    GetPlayerWeaponData(pID,9,Waffe10,Ammo10);
    format(string,sizeof string,"%s\n%d",string,Waffe10);
    GetPlayerWeaponData(pID,10,Waffe11,Ammo11);
    format(string,sizeof string,"%s\n%d",string,Waffe11);
    GetPlayerWeaponData(pID,11,Waffe12,Ammo12);
    format(string,sizeof string,"%s\n%d",string,Waffe12);
    GetPlayerWeaponData(pID,12,Waffe13,Ammo13);
    format(string,sizeof string,"%s\n%d",string,Waffe13);
    ShowPlayerDialog(playerid,DIALOG_DURCHSUCHEN,DIALOG_STYLE_MSGBOX,"Durchsuchen",string,"OK","");
    return 1;
    }
    versuchs ma so...
    sonst sag uns ma welche waffe du hast vll hift das
    noch besser wäre ein screen davon

    "Bevor ich mir Informationen aus der "Bild" hole,
    werde ich anfangen, Wahlergebnisse danach vorauszusagen,
    neben welchen Busch unsere Katze gepinkelt hat."

    Margarete Stokowski

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Iwo oben im Script:


    new WeaponName[][] =
    {
    "Keine","Schlagringe","Colfschläger","Schlagstock","Messer","Baseballschläger","Schaufel","Poolstock","Katana","Kettensege",
    "Dildo","Dildo","Vibrator","Vibrator","Blumen","Gehstock","Granate","Tränengas","Molotov-Cocktail","xxxx","xxxx","xxxx","Pistole","schallgedämpfte Pistole","Desert Eagle","Schrotflinte","abgesägte Schrotflinte","automatische Schrotflinte",
    "UZI","MP5","AK 47","M4","TEC9","Rifle","Sniper","Raketenwerfer","Bazuka","Flammenwerfer","Minigun","Auslöser","Rucksackbombe","Farbspray","Feuerlöscher","Kamera","XXXX","XXXX","Fallschirm"
    };



    Dann machste z.b.



    format(string,sizeof(string),"%s mit %d Munition",WeaponName[Waffe1],Ammo1);