Guten Tag,
ich habe das Problem, dass seit ich folgenden Code eingefügt habe der Compiler abstürzt habe es schon mit Kompatibilitätsmodus Windows Vista probiert, klappt denn noch nicht.
Ich habe den Code schon auf Klammerschließung überprüft und konnte keine nicht geschlossene Klammer finden.
Code:
C
if(dialogid == DIALOG_EDIT_HOUSE)
{
if(response)
{
switch(listitem)
{
case 0:
{
format(str,sizeof(str),""#cWeiß"House ID:\t"#cOrange"%i"#cWeiß"\nHouse Interior:\t"#cOrange"%i"#cWeiß"\nHouse Owner:\t"#cOrange"%s"#cWeiß"\nHouse BuyPrice:\t"#cOrange"%i"#cWeiß"$\nHouse SellPrice:\t"#cOrange"%i"#cWeiß"$\nHouse Bought:\t"#cOrange"%i"#cWeiß"\nHouse Locked:\t"#cOrange"%i"#cWeiß"\nHouse Money:\t"#cOrange"%i"#cWeiß"$\nHouse Type:\t"#cOrange"%i"#cWeiß"\nHouse VirtualWorld:\t"#cOrange"%i"#cWeiß"",
EditedHouse[playerid][eh_ID],EditedHouse[playerid][eh_int],EditedHouse[playerid][eh_owner],EditedHouse[playerid][eh_buyprice],EditedHouse[playerid][eh_bought],EditedHouse[playerid][eh_locked],EditedHouse[playerid][eh_money],EditedHouse[playerid][eh_type],EditedHouse[playerid][eh_vw]);
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE,DIALOG_STYLE_TABLIST,""#cOrange"TRP"#cWeiß" - Edit House",str,"Edit","Close");
return 1;
}
case 1:
{
if(EditedHouse[playerid][eh_type] == 1)
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_INTERIOR,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House Interior","1\n2","Confirm","Back");
return 1;
}
if(EditedHouse[playerid][eh_type] == 2)
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_INTERIOR,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House Interior","8\n3\n6\n5","Confirm","Back");
return 1;
}
if(EditedHouse[playerid][eh_type] == 3)
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_INTERIOR,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House Interior","12\n5\n7","Confirm","Back");
return 1;
}
if(EditedHouse[playerid][eh_type] == 4)
{
SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] You can't change the Interior of this House.");
format(str,sizeof(str),""#cWeiß"House ID:\t"#cOrange"%i"#cWeiß"\nHouse Interior:\t"#cOrange"%i"#cWeiß"\nHouse Owner:\t"#cOrange"%s"#cWeiß"\nHouse BuyPrice:\t"#cOrange"%i"#cWeiß"$\nHouse SellPrice:\t"#cOrange"%i"#cWeiß"$\nHouse Bought:\t"#cOrange"%i"#cWeiß"\nHouse Locked:\t"#cOrange"%i"#cWeiß"\nHouse Money:\t"#cOrange"%i"#cWeiß"$\nHouse Type:\t"#cOrange"%i"#cWeiß"\nHouse VirtualWorld:\t"#cOrange"%i"#cWeiß"",
EditedHouse[playerid][eh_ID],EditedHouse[playerid][eh_int],EditedHouse[playerid][eh_owner],EditedHouse[playerid][eh_buyprice],EditedHouse[playerid][eh_bought],EditedHouse[playerid][eh_locked],EditedHouse[playerid][eh_money],EditedHouse[playerid][eh_type],EditedHouse[playerid][eh_vw]);
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE,DIALOG_STYLE_TABLIST,""#cOrange"TRP"#cWeiß" - Edit House",str,"Edit","Close");
return 1;
}
}
case 2:
{
if(EditedHouse[playerid][eh_bought] == 1)
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_OWNER,DIALOG_STYLE_INPUT,""#cOrange"TRP"#cWeiß" - Edit House","","Confirm","Back");
return 1;
}
else
{
SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] This House isn't bought so you can't change the Owner.");
return 1;
}
}
case 3:
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_BUYPRICE,DIALOG_STYLE_INPUT,""#cOrange"TRP"#cWeiß" - Edit House","","Confirm","Back");
return 1;
}
case 4:
{
SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] You can't edit the Sellprice.");
return 1;
}
case 5:
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_BOUGHT,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House","Bought\nNot Bought","Confirm","Back");
return 1;
}
case 6:
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_LOCKED,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House","Lock\nUnlock","Confirm","Back");
return 1;
}
case 7:
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_MONEY,DIALOG_STYLE_INPUT,""#cOrange"TRP"#cWeiß" - Edit House","","Confirm","Back");
return 1;
}
case 8:
{
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_TYPE,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House","Type 1 - Apartment\nType 2 - Family House\nType 3 - Villa\nType 4 - Madd Dog Villa","Confirm","Back");
SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] Remember!!! Don't forget to change the Interior too!");
return 1;
}
case 9:
{
SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] You can't change the Virtual World.");
return 1;
}
return 1;
}
}
else
{
return 0;
}
}
Alles anzeigen
Danke im Voraus.