Nabend zusammen
Ich brauch nochmal eine hilfe an meinen Bizsystem
ich habe mir gestern was gemacht das zwar anscheind klappen sollte
es leider nicht tut
er gibt mir die werte nicht wieder die ich brauch
Ich lass die so aus der Tabelle laden
Der PWN code buggt bei mir immernoch rum daher mach ich es so
mysql_query("SELECT * FROM Bizz");
mysql_store_result();
if(!mysql_num_rows())
{
mysql_free_result();
}
new result[128];
while(mysql_retrieve_row())
{
for(new i = 0;i<MaxBiz;i++)
{
mysql_fetch_field_row(result,"Besitzer");
format(biz2[i][bOwner],MAX_PLAYER_NAME,"%s",result);
strdel(result,0,sizeof(result));
mysql_fetch_field_row(result,"Bizname");
format(biz2[i][bName],45,"%s",result);
strdel(result,0,sizeof(result));
mysql_fetch_field_row(result,"Offen");
biz2[i][bOpen] = strval(result);
strdel(result,0,sizeof(result));
mysql_fetch_field_row(result,"Enter");
biz2[i][bEnter] = strval(result);
strdel(result,0,sizeof(result));
mysql_fetch_field_row(result,"Prods");
biz2[i][bProds] = strval(result);
strdel(result,0,sizeof(result));
mysql_fetch_field_row(result,"PP");
biz2[i][bPP] = strval(result);
strdel(result,0,sizeof(result));
mysql_fetch_field_row(result,"Kasse");
biz2[i][bKasse] = strval(result);
strdel(result,0,sizeof(result));
mysql_fetch_field_row(result,"Payentry");
biz2[i][bPayentry] = strval(result);
strdel(result,0,sizeof(result));
schon_erstellt++;
}
}
mysql_free_result();