10.07.2012, 12:08
Erm. How to get the return value of a callback?
For example here, my callback "LoadSQLVehicle" return the id of the created vehicle with CreateVehicle() or -1 if there was an error. So, how to I get this returned value?
For example here, my callback "LoadSQLVehicle" return the id of the created vehicle with CreateVehicle() or -1 if there was an error. So, how to I get this returned value?
Код:
mysql_format_ex(str, "SELECT * FROM vehicle WHERE veh_id=%d", id); mysql_query(str, "LoadSQLVehicle", "ii", i, 0);