Hallöle,
sofern funktioniert alles, bis mir eben bewusst wurde "öh, strval kann ich ja nun schwer für Strings benutzen!".
while(mysql_fetch_row(datay))
{
printf("3 xDD!");
mysql_fetch_field("name", query);
strins(query, Biz[id][bizName], 100);
printf("ok!");
mysql_fetch_field("cash", query);
Biz[id][bizCash] = strval(query);
printf("SUPER!");
mysql_fetch_field("owner", query);
strins(query, Biz[id][bizOwner], 100);
printf("toll!");
mysql_fetch_field("x", query);
Biz[id][bizX] = floatstr(query);
mysql_fetch_field("y", query);
Biz[id][bizY] = floatstr(query);
mysql_fetch_field("z", query);
Biz[id][bizZ] = floatstr(query);
mysql_fetch_field("nowProducts", query);
Biz[id][bizNowProducts] = strval(query);
mysql_fetch_field("maxProducts", query);
Biz[id][bizMaxProducts] = strval(query);
printf("BIZ LOADED: %s, Cash: %d, Owner: %s, X: %f", Biz[id][bizName], Biz[id][bizCash], Biz[id][bizOwner], Biz[id][bizX]);
}
Er lädt bis zu "3 xDD!", aber danach nix mehr ... vll. doch was anderes als strins? Vorschläge & Beratung bitte. :-p