Ich habe ein Poblem mit auslesen von dini datein kannn mir jemand helfen ?
if(dialogid == DIALOG_LOHN)
{
if(response == 0)
{
return 1;
}
if(response == 1)
{
if(listitem == 0)
{
new string[250],betrag,pfad[68];
format(string,sizeof(string),"Rang 1 - $%d",betrag);
SendClientMessage(playerid,Grau,string);
dini_Get(pfad,"Rang1",betrag);
format(string,sizeof(string),"Rang 2 - $%d",betrag);
SendClientMessage(playerid,Grau,string);
format(string,sizeof(string),"Rang 3 - $%d",betrag);
SendClientMessage(playerid,Grau,string);
format(string,sizeof(string),"Rang 4 - $%d",betrag);
SendClientMessage(playerid,Grau,string);
format(string,sizeof(string),"Rang 5 - $%d",betrag);
SendClientMessage(playerid,Grau,string);
format(string,sizeof(string),"Rang 6 - $%d",betrag);
SendClientMessage(playerid,Grau,string);
return 1;
}
if(listitem == 1)
{
if(PlayerInfo[playerid][pLeader] < 1) return SendClientMessage(playerid,Grau,"Du bist kein Leader !");
{
ShowPlayerDialog(playerid,DIALOG_SETLOHN,DIALOG_STYLE_LIST,"Lohn ändern","Rang 1\nRang 2\nRang 3\nRang 4\nRang 5\nRang 6\n","Auswählen","Abbrechen");
return 1;
}
}
}
}