Hmm alles klar,
und wie soll man e bei diesem Stock machen?
stock UpdateMieterName(playerid, HausID)
{
new SQL[300];
if(!strcmp(GetName(playerid), Haus[HausID][hMieter1], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter1 = '-' WHERE ID = '%d'",HausID),mysql_query(SQL), format(Haus[HausID][hMieter1], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter2], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter2 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter2], 24,"-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter3], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter3 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter3], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter4], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter4 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter4], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter5], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter5 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter5], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter6], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter6 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter6], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter7], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter7 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter7], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter8], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter8 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter8], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter9], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter9 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter9], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter10], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter10 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter10], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter11], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter11 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter11], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter12], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter12 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter12], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter13], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter13 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter13], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter14], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter14 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter14], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter15], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter15 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter15], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter16], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter16 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter16], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter17], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter17 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter17], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter18], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter18 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter18], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter19], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter19 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter19], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter20], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter20 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter20], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter21], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter21 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter21], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter22], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter22 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter22], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter23], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter23 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter23], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter24], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter24 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter24], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter25], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter25 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter25], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter26], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter26 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter26], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter27], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter27 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter27], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter28], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter28 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter28], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter29], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter29 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter29], 24, "-");
else if(!strcmp(GetName(playerid), Haus[HausID][hMieter30], true))return format(SQL, sizeof(SQL), "UPDATE hauser SET Mieter30 = '-' WHERE ID = '%d'", HausID),mysql_query(SQL), format(Haus[HausID][hMieter30], 24, "-");
return 1;
}
weil dieser Stock ist bei mir in der Entmieten Befehl.