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;
}