SQL & loop problem
#5

Yeah but still row 1 is set as NULL

PHP код:
[04:02:30] [DEBUGCalling callback "OnFactoryLoad"..
[
04:02:30] [DEBUGcache_get_data connection1
[04:02:30] [DEBUGcache_get_field_content_int row0field_name"ID"connection1
[04:02:30] [DEBUGCMySQLResult::GetRowDataByName row'0'field"ID"data"1"
[04:02:30] [DEBUGcache_get_field_content_int row0field_name"Resources"connection1
[04:02:30] [DEBUGCMySQLResult::GetRowDataByName row'0'field"Resources"data"NULL"
[04:02:30] [ERRORcache_get_field_content_int invalid datatype
[04:02:30] [DEBUGcache_get_field_content_int row1field_name"ID"connection1
[04:02:30] [DEBUGCMySQLResult::GetRowDataByName row'1'field"ID"data"2"
[04:02:30] [DEBUGcache_get_field_content_int row1field_name"Resources"connection1
[04:02:30] [DEBUGCMySQLResult::GetRowDataByName row'1'field"Resources"data"6520"
[04:02:30] [DEBUGcache_get_field_content_int row2field_name"ID"connection1
[04:02:30] [DEBUGCMySQLResult::GetRowDataByName row'2'field"ID"data"3"
[04:02:30] [DEBUGcache_get_field_content_int row2field_name"Resources"connection1
[04:02:30] [DEBUGCMySQLResult::GetRowDataByName row'2'field"Resources"data"3000"
[04:02:30] [DEBUGcache_get_field_content_int row3field_name"ID"connection
I fixed the prob with invalid datatype
I was using int instead of float but still the problem remains





EDIT: SA:MP log
PHP код:
[04:14:19UPDATE `factoriesSET `Resources`=500.0 WHERE `ID`=1
[04:14:19UPDATE `factoriesSET `Resources`=6520.0 WHERE `ID`=2
[04:14:19UPDATE `factoriesSET `Resources`=3000.0 WHERE `ID`=
It prints as it should be but still not saving the ID 1 at all




EDIT 2: new SQL log
PHP код:
[04:28:15] [DEBUGCalling callback "OnFactoryLoad"..
[
04:28:15] [DEBUGcache_get_data connection1
[04:28:15] [DEBUGcache_get_field_content_int row0field_name"ID"connection1
[04:28:15] [DEBUGCMySQLResult::GetRowDataByName row'0'field"ID"data"1"
[04:28:15] [DEBUGcache_get_field_content_float row0field_name"Resources"connection1
[04:28:15] [DEBUGCMySQLResult::GetRowDataByName row'0'field"Resources"data"000000000000"
[04:28:15] [DEBUGcache_get_field_content_int row1field_name"ID"connection1
[04:28:15] [DEBUGCMySQLResult::GetRowDataByName row'1'field"ID"data"2"
[04:28:15] [DEBUGcache_get_field_content_float row1field_name"Resources"connection1
[04:28:15] [DEBUGCMySQLResult::GetRowDataByName row'1'field"Resources"data"000000006520"
[04:28:15] [DEBUGcache_get_field_content_int row2field_name"ID"connection1
[04:28:15] [DEBUGCMySQLResult::GetRowDataByName row'2'field"ID"data"3"
[04:28:15] [DEBUGcache_get_field_content_float row2field_name"Resources"connection1
[04:28:15] [DEBUGCMySQLResult::GetRowDataByName row'2'field"Resources"data"000000003000" 
Reply


Messages In This Thread
SQL & loop problem - by TwinkiDaBoss - 15.12.2015, 01:40
Re: SQL & loop problem - by zPain - 15.12.2015, 01:44
Re: SQL & loop problem - by TwinkiDaBoss - 15.12.2015, 01:53
Re: SQL & loop problem - by zPain - 15.12.2015, 01:57
Re: SQL & loop problem - by TwinkiDaBoss - 15.12.2015, 02:04
Re: SQL & loop problem - by zPain - 15.12.2015, 02:28
Re: SQL & loop problem - by TwinkiDaBoss - 15.12.2015, 02:32
Re: SQL & loop problem - by Vince - 15.12.2015, 08:42
Re: SQL & loop problem - by vassilis - 15.12.2015, 13:01
Re: SQL & loop problem - by TwinkiDaBoss - 15.12.2015, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)