Versuch es mal so:
mysql_tquery(Handle, "SELECT * FROM `atm`", "LoadATM", "");
forward LoadATM();
public LoadATM()
{
new rows;
cache_get_row_count(rows);
for(new i = 0; i < rows; i++)
{
cache_get_value_name_int(0, "ID", ATMInfo[i][bID]);
cache_get_value_name_float(0, "X", ATMInfo[i][bX]);
cache_get_value_name_float(0, "Y", ATMInfo[i][bY]);
cache_get_value_name_float(0, "Z", ATMInfo[i][bZ]);
cache_get_value_name_float(0, "A", ATMInfo[i][bA]);
ATMInfo[i][bErstellt] = true;
ATMInfo[i][bObject] = CreateDynamicObject(2942, ATMInfo[i][bX], ATMInfo[i][bY], ATMInfo[i][bZ]-0.5, 0, 0, ATMInfo[i][bA]);
}
return 1;
}
Query, weißt du ja wohin, dort wo die jetzige ist. Das forward oben ins Script, oder so übern Public lassen.