12.03.2015, 23:21
Programming languages are case sensitive, meaning that if you are calling OnLoadAtms but you have forwarded OnLoadATMS the script will simply not find the callback and will skip executing it while OnLoadATMS will not even be called. To fix that replace this:
with this:
The rest of the code seems fine to me, although there is no need to store everything in strings and then use strval and floatstr since there are functions available like cache_get_field_content_int and cache_get_field_content_float.
Код:
mysql_function_query(MainPipeline, "SELECT * FROM `atms`", true, "OnLoadAtms", "");
Код:
mysql_function_query(MainPipeline, "SELECT * FROM `atms`", true, "OnLoadATMS", "");