Schau mal welches Printf nicht mehr angezeigt wird:
stock LoadBiz(bID)
{
printf("Die Funktion LoadBiz wurde mit der ID %i geöffnet", bID); // Damit siehst du ob deine Schleife was bewirkt
new str[5],str1[256];
format(str,5,"%d",bID);
if(mysql_CheckBiz(bID)){
BizInfo[bID][ID] = mysql_GetInt("Business", "ID", "ID", str);
BizInfo[bID][Owner] = mysql_GetString("Business", "Owner", "ID", str);
BizInfo[bID][Bizname] = mysql_GetString("Business", "Bizname", "ID", str);
BizInfo[bID][Kasse] = mysql_GetInt("Business", "Kasse", "ID", str);
BizInfo[bID][Kaufpreis] = mysql_GetInt("Business", "Kaufpreis", "ID", str);
BizInfo[bID][Produkte] = mysql_GetInt("Business", "Produkte", "ID", str);
BizInfo[bID][MaxProds] = mysql_GetInt("Business", "MaxProds", "ID", str);
BizInfo[bID][ProdPreis] = mysql_GetInt("Business", "ProdPreis", "ID", str);
BizInfo[bID][Open] = mysql_GetInt("Business", "Open", "ID", str);
BizInfo[bID][bPreis] = mysql_GetInt("Business", "Preis", "ID", str);
BizInfo[bID][bEnterX] = mysql_GetFloat("Business", "EnterX", "ID", str);
BizInfo[bID][bEnterY] = mysql_GetFloat("Business", "EnterY", "ID", str);
BizInfo[bID][bEnterZ] = mysql_GetFloat("Business", "EnterZ", "ID", str);
BizInfo[bID][PickupID] = mysql_GetInt("Business", "PickupID", "ID", str);
BizInfo[bID][Owned] = mysql_GetInt("Business", "Owned", "ID", str);
BizInfo[bID][AltName] = mysql_GetString("Business", "OldName", "ID", str);
printf("Erste Abfrage hat geklappt"); // Deine erste Abfrage klappt
if(BizInfo[bID][Owned] == 0)
{
format(str1,256,"%s\nBesitzer: %s\nDieses Geschäft steht zum Verkauf!\n\nPreis: %d$",BizInfo[bID][AltName],BizInfo[bID][Owner],BizInfo[bID][Kaufpreis]);
BizLabel[bID] = Create3DTextLabel(str1,COLOR_WHITE,BizInfo[bID][bEnterX],BizInfo[bID][bEnterY],BizInfo[bID][bEnterZ],20.0,0,1);
BizPickup[bID] = CreatePickup(1239,32,BizInfo[bID][bEnterX],BizInfo[bID][bEnterY],BizInfo[bID][bEnterZ]);
printf("BizID %i hat keinen Owner!", bID);
}
else if(BizInfo[bID][Owned] == 1)
{
format(str1,256,"%s\nBesitzer: %s\nProdukte: %d/%d\nPreis: %d$",BizInfo[bID][Bizname],BizInfo[bID][Owner],BizInfo[bID][Produkte],BizInfo[bID][MaxProds],BizInfo[bID][bPreis]);
BizPickup[bID] = CreatePickup(BizInfo[bID][PickupID],32,BizInfo[bID][bEnterX],BizInfo[bID][bEnterY],BizInfo[bID][bEnterZ]);
BizLabel[bID] = Create3DTextLabel(str1,COLOR_LIGHTBLUE,BizInfo[bID][bEnterX],BizInfo[bID][bEnterY],BizInfo[bID][bEnterZ],20.0,0,1);
printf("BizID %i hat einen Owner!", bID); // Die Zuweisung BizInfo[bID][Owned]... hat geklappt
}
}
return 1;
}